-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
java: Improve profiler robustness (#16)
This PR improves the robustness of the Java profiler. * Upgrade to async-profiler v2.0 * Use async-profiler's log option to capture errors & warnings, and print them on profiling failure. * If "load" fails, check if libasyncProfiler.so was loaded to the target process, and log it accordingly. * Handle absolute symlinks in other namespaces (resolve part by part in usermode, so it works over /proc/pid/root) * Use separate temporary directories per profiled process, to avoid possible races when copying libasyncProfiler.so and when removing the directories after profiling is done (if the same directory is used by multiple profile_process threads). * tests: Run Java container as non-root - ensures we give correct "other" permissions to output paths, etc.
- Loading branch information
Showing
5 changed files
with
145 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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