1、top -c 查看最耗cpu的进程 2、top -Hp pid 找出进程中最耗cpu的线程 3、printf “%x\n” 21742 线程id转16进制 jstack 进程id| grep 16进制线程id