The perf Profiler and the JVM (Part 1)
summary
Shows how to use Linux perf to profile a JVM process: how to run perf, collect profiles from a Java process, and inspect the resulting data. Compares perf results with Java Flight Recorder and thread dump sampling to highlight perf’s strengths and limits, and demonstrates advanced use with hardware performance counters. Practical workshop requires Linux root access, perf, OpenJDK 17, and optionally Mission Control and git.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 5:26Profiler surveys
- 7:12Why use perf
- 11:09Demo setup
- 18:02Java perf tuning
- 24:36Flame graph from perf
- 32:03Profiling results analysis
- 35:01Comparison with JFR
- 41:16Mission Control nuances
- 44:38Break
related talks
45mJava Profiling in the Linux Style
46mCPU Profiling on the JVM and Flame Graphs
45mMastering JVM Profiling: Advanced Techniques and Real-Life Case Studies
01h 05mWorkshop: Crash Course on Open Source Profilers (part 1)
55mWhat's Going On in Java?
01h 17mWorkshop: Crash Course on Open Source Profilers (part 2)
33mWriting a Java Profiler in Pure Java
45mPerformance lab. The power of the perf tool!
