feat: agent - eBPF Persist Java symbol table (#7325)#7522
Merged
Conversation
* feat: agent - eBPF Persist Java symbol table * JAVA symbol persist adapt to repeated agent restarts * Add non-blocking mode for java agent.so Add exception handling for JAVA agent transmission and ensure timely delivery of information to the file * Socket send adjustments, adding meta send * Add check for HotSpot/OpenJ9 JVM dependency file * Because it's persistent, multiple agents cannot run simultaneously To determine if the profiler is already running, at any given time, only one profiler can be active due to the persistence required for Java symbol generation, which is incompatible with multiple agents. * To detect the disconnection of the target Java program and output logs * Add handling for the 'JVMTI_EVENT_COMPILED_METHOD_UNLOAD' event * Fix the issue where attach is not possible * Unified Log Output * Implementing thread pool management mechanism * After attaching, clean up the residual files in the target JAVA namespace * Adjustments to Profile JAVA-related configuration items * Modify Java-symbol file generation call interface and adjust the compilation * Modify log output for deepflow-agent check & Modify comment * JVM agent error handling * Adjust the Java symbol collection program * Perform the attach operation using the command line * Rename files related to Java symbol collection * Prevent excessive log output * Add error handling to increase code robustness. * Modify the method for checking if the deepflow-agent process is running * Modify comment * Adjust thread identification Conflicts: agent/src/ebpf/user/config.h agent/src/ebpf/user/profile/perf_profiler.h agent/src/ebpf/user/profile/profile_common.c
sharang
approved these changes
Jul 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: agent - eBPF Persist Java symbol table
JAVA symbol persist adapt to repeated agent restarts
Add non-blocking mode for java agent.so
Add exception handling for JAVA agent transmission and ensure timely delivery of information to the file
Socket send adjustments, adding meta send
Add check for HotSpot/OpenJ9 JVM dependency file
Because it's persistent, multiple agents cannot run simultaneously
To determine if the profiler is already running, at any given time, only one profiler can be active due to the persistence required for Java symbol generation, which is incompatible with multiple agents.
To detect the disconnection of the target Java program and output logs
Add handling for the 'JVMTI_EVENT_COMPILED_METHOD_UNLOAD' event
Fix the issue where attach is not possible
Unified Log Output
Implementing thread pool management mechanism
After attaching, clean up the residual files in the target JAVA namespace
Adjustments to Profile JAVA-related configuration items
Modify Java-symbol file generation call interface and adjust the compilation
Modify log output for deepflow-agent check & Modify comment
JVM agent error handling
Adjust the Java symbol collection program
Perform the attach operation using the command line
Rename files related to Java symbol collection
Prevent excessive log output
Add error handling to increase code robustness.
Modify the method for checking if the deepflow-agent process is running
Modify comment
Adjust thread identification Conflicts:
agent/src/ebpf/user/config.h
agent/src/ebpf/user/profile/perf_profiler.h
agent/src/ebpf/user/profile/profile_common.c
This PR is for:
Affected branches