jstack与线程的状态

tomcat为例




MultiThreadedHttpConnectionManager 'cleanup线程名字
132 线程编号
prio=5 线程优先级
os_prio=0 os优先级
nid=0x55ce 操作系统的nid 但是这里16进制

java.lang.Thread.State: WAITING (on object monitor) 线程状态WAITING 在等待对象的锁

100个工作线程都在等请求


100个工作线程

GC后台线程



回收对象用的

C1 C2 C3 JIT编译线程



调试用的



main线程

垃圾回收


java线程的状态 官网
https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr034.html
BLOCKED : The thread is blocked waiting for a monitor lock.
WAITING : The thread is waiting indefinitely for another thread to perform a particular action.
TIMED_WAITING : The thread is waiting for another thread to perform an action for up to a specified waiting time.

java线程状态转化:侯树成
https://mp.weixin.qq.com/s/GsxeFM7QWuR--Kbpb7At2w

-F: Force a stack dump when jstack [-l] pid does not respond.
-m: Prints a mixed mode stack trace that has both Java and native C/C++ frames.

你可能感兴趣的:(jstack与线程的状态)