Simple analysis of JDK's own analysis tool jstack

jstack -l > xxxx.jstack

jstack is an effective command-line tool for grabbing thread dump files. It is located in the bin folder (JDK_HOMEbin) in the JDK directory. The following is the command to grab the dump file:

Then you can use fastthread.io to analyze: [JVM]dump analysis tool_fastthread.io

[JVM] dump analysis tool_fastthread.io_pmdream's blog-CSDN blog_dump analysis tool

illustrate

jstack, which mainly analyzes thread problems, is different from jmap which mainly analyzes OOM and heap memory problems.

It is mainly used to track the execution status of threads in the java process, which is more important.

jstack pid; //can print out the stack and status of threads in the process;

effect:

There is a problem with the thread - deadlock;

thread state;

Guess you like

Origin blog.csdn.net/bobocqu/article/details/127626991