Search code examples
javajvmjprofiler

Measure cache misses in JVM


Is it possible to measure cache misses in a running JVM?

Even better, is there a way to get these metrics in JProfiler? Or any other profiler?

I have explored JProfiler options and haven't seen an inspection for this.


Solution

  • On linux you can use perf-map-agent which provides java integration for perf-tools.

    async-profiler is another tool supporting perf events.