Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bjdump: /tmp/perf-$pid.map: File format not recognized ▒ #305

Open
cyberspicecai opened this issue Apr 5, 2023 · 0 comments
Open

bjdump: /tmp/perf-$pid.map: File format not recognized ▒ #305

cyberspicecai opened this issue Apr 5, 2023 · 0 comments

Comments

@cyberspicecai
Copy link

cyberspicecai commented Apr 5, 2023

Hi, Brendan

 thanks for your powerfull tool of flamegraph.

 I follow your guide of "Java Performance Analysis on Linux with Flame Graphs" at 2016.  I have one strange issue: /tmp/perf-$pid.map is not recognized.
How to reproduce:

1, use mvn package to compile the jmh-benchmark https://github.com/mkyong/jmh-benchmark.git
2, 2.1 numactl -C 3 -m 0 java -jar target/benchmarks.jar loopFor #run the test case. loopFor is one benchmark case.
or this method:
2.2 perf record -v -g -k 1 numactl -C 3 -m 0 java -agentpath:/usr/lib64/libperf-jvmti.so -jar target/benchmarks.jar loopFor
or your method: add this option of -XX:+PreserveFramePointer
2.3 perf record -v -g -C 3 numactl -C 3 -m 0 java -XX:+PreserveFramePointer -jar target/benchmarks.jar loopFor
3, perf and output the mapt of the threads which is from pgrep java
4, ./create-java-perf-map.sh 3490983 -F 99 #to output the java jit map.
5, perf report -i /tmp/pid-3490983.data will show the error.

thanks a lot .
Cyberspice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant