Gintas_
Gintas_

Reputation: 5030

How do I inspect why CPU is always rising on Java app?

I have built a Java application, which works as a server for my multiplayer game. I see the CPU usage is always rising and drops immediately after I restart the Java application. How can I inspect what is wrong? Are there any tools? The server runs on Linux, but I can run it on Mac too for checking.

clusterfuck

Upvotes: 0

Views: 58

Answers (1)

Philipp B.
Philipp B.

Reputation: 86

Check if you have some unneeded Threads running. If you don't have any, use Java VisualVM or Apache JMeter (my tools of choice) to find the source of the cpu usage.

Upvotes: 1

Related Questions