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.64k stars 260 forks source link

Perf not listing more than 1 line in JVM stack #70

Closed rbalamohan closed 5 years ago

rbalamohan commented 6 years ago

In one of my cluster, I can attach perf-map agent and get the symbol dump without issue.

I can record "perf record -F 99 -ag" and generate script via "perf script". However, it lists only one line for the JVM stack (the top frame in the stack). JVM is started with "-XX:-OmitStackTraceInFastThrow".

Has anyone observed something like this?

apangin commented 6 years ago

Perhaps you haven't set -XX:+PreserveFramePointer? You may also try async-profiler - it does not require additional JVM options.

rbalamohan commented 6 years ago

I believe that is missed out for some reason. Added that and checking it. Thanks a lot. Yes, I use async-profiler regularly as well.

rbalamohan commented 6 years ago

BTW, I faced slightly different issue in async-profiler as well with these nodes. With async-profiler, it does not generate samples on these nodes and does not report errors as well. I have raised a ticket regarding this in async-profiler community.

nitsanw commented 5 years ago

Closing as per comment https://github.com/jvm-profiling-tools/perf-map-agent/issues/70#issuecomment-387551610 suggests the issue was misconfigured JVM