查看各个进程使用cpu情况 top 查看该进程中各个线程使用情况,获取tid ps -mp [pid] -o THREAD,tid,time tid转成16进制 printf “%x\n” [tid] 查看线程具体信息 jstack [pid] |grep [tid] -A 60