introduce
VisualVM is a free visual tool that integrates multiple JDK command line tools. It can provide you with powerful analysis capabilities to perform performance analysis and tuning of Java applications. These capabilities include generating and analyzing massive amounts of data, tracking memory leaks, monitoring the garbage collector, performing memory and CPU analysis, and it also supports browsing and manipulation on MBeans. This article mainly introduces how to use VisualVM for performance analysis and tuning.
Download address: http://visualvm.github.io/download.html
Simple to use
After downloading, open the file in the bin directory
Run a program to check the Heap usage. Please explore the specific usage by yourself.