Created
April 19, 2017 21:53
-
-
Save alicegoldfuss/12e7238d1b387134c037e2eb5af66d87 to your computer and use it in GitHub Desktop.
broken code snippets :(
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
2. Capture a system profile on the host with something like | |
``` | |
sudo perf record -F 99 -a -g -- sleep 30 | |
``` | |
3. From inside the container (easier to have this running already in another shell) dump the symbols for the Java process with | |
``` | |
java -cp attach-main.jar:$JAVA_HOME/lib/tools.jar \ | |
``` | |
``` | |
net.virtualvoid.perf.AttachOnce PID | |
``` | |
3. You will now have a `perf-PID.map` file inside `/tmp` of the container. Move this file to the host (I used a mounted volume). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment