Which Java thread is hogging the CPU?

前端 未结 12 1747
萌比男神i
萌比男神i 2020-12-07 07:48

Let\'s say your Java program is taking 100% CPU. It has 50 threads. You need to find which thread is guilty. I have not found a tool that can help. Currently I use the follo

12条回答
  •  旧巷少年郎
    2020-12-07 08:27

    If you're running under Windows, try Process Explorer. Bring up the properties dialog for your process, then select the Threads tab.

提交回复
热议问题