Jstack定位CPU过高问题
文章目录
- 定位进程,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)
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论