Under windows Java occupy high CPU usage analysis

First, find the corresponding java process ID ( PID )

Method One, open the Task Manager, then click the "View" - > "Select Columns", the pid on the hook, then you can see all the processes in the Task Manager pid value ; second method, by third-party tools : IE comes with tools - Process Explorer

Download http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

Second, view the dump file

1, open jdk under jvisualvm.exe (path: jdk1.7 \ bin \ jvisualvm.exe )

2, according to the pid to find the corresponding application number

View the heap dump and thread dump

Transfer from: http: //blog.csdn.net/huilangeliuxin/article/details/52214136

Guess you like

Origin blog.csdn.net/m0_37488170/article/details/79002351