jstack 工具

若是在运行项目的时候,出现cpu占用太高的问题,那么该怎么去排查呢。linux

1.  linux 环境进程

 使用 top 命令cmd

这里能够看到 PID为 9970的进程 CPU使用率很是高,明显就是JAVA~im

ps p 9970 -L -o pcpu,pid,tid,time,tname,cmdcpu

 

这里看到 TID即 9994,9995的cpu在 0.7 , 0.6 咱们以这么为例子看一下项目

jstack -l 9994top

相关文章
相关标签/搜索