There are many visual chemicals for troubleshooting JVM problems, such as JDK jConsole, JvSualVM, etc., third-party MAT, GChisto, GCView, etc.

Jconsole checks the memory reclamation

The jConsole tool is in the bin directory of the JDK.

Select your own process, enter, will prompt unsafe links, continue to click in

You’ll see an overview of the entire JVM

You can view threads and memory usage

You can also select a section of JVM memory, such as the Eden region of the new generation, Survivor region, old generation, and so on.

You can also look at the VM profile, as shown in the figure

For remote connection please refer to:

Blog.csdn.net/u012758088/…

Jvisualvm looks at memory reclamation

Jvisualvm tools are in the bin directory of the JDK. , similar to jConsole;

Double click on the

Choose our process

This is a relatively small overview

Monitor the overall situation, CPU, heap, classes, threads

View thread-related data

Go to the Profiler, click on memory, and then enter the analysis phase, where the data for the objects in memory is shown below

You can view objects in memory at work.

Please refer to:

My.oschina.net/u/2300159/b…

Third-party tools

MAT

Java heap memory analysis tool.

GChisto

GC log analysis tool.

GCViewer

GC log analysis tool.

JProfiler

Commercial performance analysis tools.

arthas

Ali open source diagnostic tool.

  • Github.com/alibaba/art…

async-profiler

Java application performance analysis tool, open source, flame map, cross-platform.

  • Github.com/jvm-profili…

For the use of third-party tools, the following articles will demonstrate and explain each tool in detail. It would be a lot of space to describe all the detailed steps and precautions for using all the tools.

Continue to update, stay tuned ~