1、top 查出PID
top
2、找到线程
top -H -p 进程PID
3、将线程id转换成16进制
printf '0x%x\n' 线程pid
4、jstack 找出代码
jstack 进程PID |grep 16进制线程pid -A 20