I have a performance problem(Hi-CPU) in my server application. But the issue only appears when the server has been running for a long time(a week on average). I tried to use Netbeans built-in profiler to diagnose the problem, but after running for a few hours it simply stops responding.
Is there any way to perform long term monitoring of the application? Thanks.
UPDATE:This is NOT a web application
Java profiling in Eclipse allows you to optimize your code, streamline your application, and better understand your program.
Java VisualVM is a simplified yet robust profiling tool for Java applications. This is a free, open-source profiler. This tool was bundled with the Java Development Kit (JDK) up to JDK 8, but was removed in JDK 9 and is now distributed as a standalone tool: VisualVM Download.
Many performance problems in enterprise or web applications result from memory (garbage collector) or database access issues. JProfiler is a Java profiler tool and is useful for developers/testers as it can be used to analyze performance bottlenecks, memory leaks, CPU loads, and to resolve threading issues.
You should take a look at Visual VM if you havent done so already (if you're on JDK 6 update 7 or above). I'm sure its gonna be quite comforting since its an "adaptation" of Netbeans profiler into Java core.
I have used perf4j in the past for performance logging to find bottlenecks
http://www.infoq.com/articles/perf4j
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With