- 定位过程,top
- 定位线程,top -Hp 过程号,获取线程号,H代表Thread
- 将线程号转换为16进制,printf “%x\n” PID
- 获取异样代码堆栈,jstack 过程PID | grep 16进制异样线程号 -A 90,-A 90指输入90行
tid, Java memory address of its internal Thread control structure.
nid, native thread id. 每一个nid对应于linux下的一个tid, 即lwp (light weight process, or thread)
发表回复