This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. jps或top 获取java的进程id | |
2. top -H -p java进程id ,可以看到各个线程占用的CPU时间 | |
3. 找出占用CPU时间最高的线程PID, python -c "print hex(线程PID)" ,获取线程ID的16进制表示 | |
4. jstack java进程id | less 根据16进制的线程ID查找具体线程的执行情况 |