“是什么意思”线程转储“ [英] What is the meaning of " thread dump"
问题描述
我想知道java线程转储是什么。
有人可以帮我理解线程转储是什么以及它与正在运行的java程序有什么关系吗?
I want to know what a java thread dump is. Can someone please help me understand what a thread dump is and how it relates to a running java program?
推荐答案
Java线程转储是一种查找JVM中每个线程在特定时间点执行操作的方法。如果您的Java应用程序在加载下运行时有时似乎挂起,这尤其有用,因为对转储的分析将显示线程被卡住的位置。
A Java thread dump is a way of finding out what every thread in the JVM is doing at a particular point in time. This is especially useful if your Java application sometimes seems to hang when running under load, as an analysis of the dump will show where the threads are stuck.
您可以生成一个通过运行 kill -QUIT< pid>
,并在下的
,点击 Unix / Linux
下的线程转储Windows Ctl + Break
。
You can generate a thread dump under Unix/Linux
by running kill -QUIT <pid>
, and under Windows
by hitting Ctl + Break
.
知道如何从中获取线程转储JVM 见这里
To Know how to take thread dump from JVM see here
要知道如何创建线程转储请参阅此处
To know how to create thread dump see here
这篇关于“是什么意思”线程转储“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!