O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Different CPU profiling options

As discussed in Chapter 4, Monitoring Java Applications, Java profilers have many different modes and the most commonly used ones are as follows:

  • Event-based: This is the mode where the profiler captures the application's events such as as method calls, class loading, thread changes, and so on.
  • Instrumental-based: This is the mode where the profiler instruments the application with additional instructions to gather more information. This causes the highest impact on the application's execution time compared to the other types.
  • Sampling-based (statistical): This is the mode where the profiler probes the target program's program counter (PC) at regular intervals using operating system interrupts. Sampling profiles are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required