Profilers bundled in the JDK
The JDK includes profiling tools that can provide us with valuable insights into our Java application’s performance. The use of these tools is highly recommended to identify performance issues and opportunities for performance fine-tuning. This section explores the primary profilers that are built-in to the JDK – JVisualVM and Java Mission Control (JMC).
JVisualVM
The JVisualVM, short for Java Visual Virtual Machine, is a robust profiling tool built into the JDK. It offers an impressive set of features that include monitoring, profiling, and troubleshooting Java applications.
An overview and features
JVisualVM provides a graphical user interface that combines several JDK tools, including JConsole. The interface is displayed in the following figure.
Figure 14.1: The JVisualVM graphical user interface
The key features of JVisualVM are summarized as follows:
- Heap dump analysis: JVisualVM is able...