Jstack and thread dump instance parsing
•
Java
Jstack definition:
Jstack is a stack tracing tool that comes with the Java virtual machine.
Jstack is used to generate a thread snapshot of the Java virtual machine at the current time. Thread snapshot is a collection of method stacks being executed by each thread in the current Java virtual machine. The main purpose of generating thread snapshot is to locate the causes of long-time pause of threads, such as deadlock between threads, dead loop, long wait caused by requesting external resources, etc.
A deadlock code is run here, causing two threads in the program to wait for each other to release the lock, causing the program deadlock.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码