jvm-profiling-tools / perf-map-agent

A java agent to generate method mappings to use with the linux `perf` tool
GNU General Public License v2.0
1.65k stars 260 forks source link

when do i have to create the map #82

Closed cristifalcas closed 5 years ago

cristifalcas commented 5 years ago

The perf map should be created before or after the per record/top commands?

jrudolph commented 5 years ago

You should first make sure that JIT is mostly done and the JVM is in a steady state and doesn't recompile things (e.g. using -XX:+PrinCompilation), then you can run the agent and afterwards the perf analysis tools. In general, it makes sense to run the map agent at a similar time as the collection to make sure the mapping is mostly correct. You can also see the provided scripts for some hints about things are usually done.

cristifalcas commented 5 years ago

Thank you