{"id":18895590,"url":"https://github.com/kindlingproject/kindling-java","last_synced_at":"2025-08-26T03:09:21.964Z","repository":{"id":125869697,"uuid":"551304165","full_name":"KindlingProject/kindling-java","owner":"KindlingProject","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-10T09:20:08.000Z","size":146,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T01:13:43.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KindlingProject.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-14T06:49:01.000Z","updated_at":"2024-06-05T15:59:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e248ade-1546-4a04-9ee3-7673faee4abf","html_url":"https://github.com/KindlingProject/kindling-java","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KindlingProject%2Fkindling-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KindlingProject%2Fkindling-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KindlingProject%2Fkindling-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KindlingProject%2Fkindling-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KindlingProject","download_url":"https://codeload.github.com/KindlingProject/kindling-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986315,"owners_count":21194025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:28:58.593Z","updated_at":"2025-04-15T01:13:49.716Z","avatar_url":"https://github.com/KindlingProject.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kindling-java\nKindling-java is an attach agent to collect Java CPU / LOCK for probe which relies on [async-profiler](https://github.com/KindlingProject/async-profiler). Besides it also collect traceId / span Info generated by SkyWalking \u0026 Pinpoint agent.\n\nFeatures\n* [Event] Collect datas by events specified by event argument[cpu / lock / traceid].\n* [Plugins] Enhance SkyWalking Agent and print traceId and span into /dev/null.\n* [Plugins] Enhance Pinpoint Agent and print traceId and span into /dev/null.\n\n## Build Kindling Java\n```\n# Binary will be built in agent-package/target/kindling-java-${version}.tar.gz\n$ mvn clean package -Dmaven.test.skip=true\n\nkindling-java\n├── 1.0.3\n│   ├── agent-core.jar\n│   ├── plugin-span-pp.jar\n│   ├── plugin-span-sw.jar\n│   ├── plugin-traceid-pp.jar\n│   └── plugin-traceid-sw.jar\n├── agent-boot.jar\n└── version\n```\n\n## Build AsyncProfiler\n```\ngit clone -b kindling git@github.com:KindlingProject/async-profiler.git\ncd async-profiler\n./build.sh\n\n# Copy Kindling Java into async-profiler/agent folder\ntar -zxvf async-profiler-${version}-linux-x64.tar.gz\nmkdir -p async-profiler/agent\ntar -zxvf \nmv kindling-java -zxvf $KINDLING_JAVA_FOLDER/agent-package/target/kindling-java-${version}.tar.gz -C async-profiler/agent/\ncd async-profiler  \n```\n\nWe also support build in container using following command.\n```\n$ ./build.sh linux-${arch}\nX64:        ./build.sh linux-x64\nX64-MUSL    ./build.sh linux-x64-musl\nARM64       ./build.sh linux-arm64\n## Attach Java Application\n\u003e ./profiler.sh start $options $pid\n\nOptions:\n* -e  EvnetTypes cpu / lock / traceid, all is opened by default.\n* -i  Collect CPU interval(nanosecond), default is 10000000.\n* -j  Collect CPU stack max-depth, default is 20.\n\nEg.\n```\n# Collect CPU with max-depth 10.\n\u003e ./profiler.sh start -e cpu -j 10 $pid\n\n# Open CPU \u0026 LOCK\n\u003e ./profiler.sh start -e cpu -e lock $pid\n```\n\n## Detach Java Application\n\u003e ./profiler.sh stop $pid\n\n## How it works\n* Jcopy copy the agent and libasyncprofiler.so into container.\n* Jattach attach agent into application.\n* Agent start asyncProfiler by call asyncProfielr API.\n    * Load libasyncprofiler.so\n    * Execute start/stop command\n    * Execute print to collect CPU data at fixed rate\n* Agent enhance Skywalking / Pinpoint agent by asm and print traceid into /dev/null.\n    * Begin / End life cycle of the trace\n    * When trace is dispatched into another thread, begin / end life cycle of the runnable execution.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkindlingproject%2Fkindling-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkindlingproject%2Fkindling-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkindlingproject%2Fkindling-java/lists"}