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