Reputation: 5030
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.
Upvotes: 0
Views: 58
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