JVM cpu high processing

1. Top find out the java process number 9592 with high cpu

2. Top -Hp 9592 to view the thread number 28178 with the highest CPU usage time

3. Execute printf "%x\n" 28178 to get the thread hexadecimal address 6e12 (hex must be lowercase)

 
4. Execute jstack 9592 (pid) | grep -10 6e12 (thread hexadecimal number)

 

 

/usr/java/jdk1.7.0_79/bin/jstack 28003 > 8238.log

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325314765&siteId=291194637