Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a long term Java profiler or performance logger?

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

like image 543
Shisoft Avatar asked Apr 18 '12 03:04

Shisoft


People also ask

Is Eclipse Profiler a Java profiler?

Java profiling in Eclipse allows you to optimize your code, streamline your application, and better understand your program.

Is JVM a Java profiler?

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.

Is JProfiler a performance measurement tool?

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.


2 Answers

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.

like image 135
mazaneicha Avatar answered Oct 06 '22 10:10

mazaneicha


I have used perf4j in the past for performance logging to find bottlenecks

http://www.infoq.com/articles/perf4j

like image 42
Doug Ayers Avatar answered Oct 06 '22 09:10

Doug Ayers