Slide 5
Slide 5 text
Detailed analysis – profiling
• Based on instrumentation of classes
• Accurate
• Noticeable performance overheard
• Not appropriate for production environments
Instrumenting profilers
Dynamic measurement of appropriate performance relevant metrics of a running
application – CPU, memory, I/O, method invocations and execution times, etc.
Some popular Java profilers: VisualVM, JConsole, Java Mission Control, Java Flight
Recorder, JProfiler, YourKit, Oracle Developer Studio, Honest Profiler, async-profiler
Sampling profilers
• Based on frequent periodic collection of all
threads’ stack traces and their comparison
• Less accurate (e.g. fast calls, safepoints)
• Less performance overhead
• Can be used in production environments