CPU soar easily locate the problem

The following four steps to easily locate CPU soar question:

 

Top pid  view cpu CPU-intensive process

 

Top -Hp pid  view of all the processes running thread, a thread to find high CPU-pid

 

③  the printf% X pid  print out the hexadecimal value of pid (jstack thread ID in the command result for the nid, and in hexadecimal notation)

 

④  jstack the -l pid NID grep  command to view a snapshot of the thread, find a specific thread according to the hexadecimal value of the previous entry, the code will be able to know what this process is executed

Guess you like

Origin www.cnblogs.com/yulinfu/p/11505333.html