java 笔记


线程状态

image

高cpu 使用的代码查找

1
ps H -eo user,pid,ppid,tid,time,%cpu,cmd –sort=%cpu

tid 是线程ID 转成十六进制去查

jstack 9002 > stack.log

  1. arthas

Author: winjeg
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source winjeg !
  TOC