views:

448

answers:

7

I'm looking for a good tool to profile a java webapp. I'd like to get performance information and memory usage if possible.

Any suggestions?

+7  A: 

JProfiler is a really good one. It integrates with all the major IDEs and application servers.

jodonnell
Could you elaborate on the benefits of JProfiler over Netbeans profiler? I'd really like to know :)
Thorbjørn Ravn Andersen
I don't know what they are. I've never used the Netbeans profiler, but I've heard raves about it.
jodonnell
+1  A: 
Jim McKeeth
+1  A: 

I've used YourKit Java Profiler 7.5 and was reasonably happy with it. Java has some pretty good tools included with recent releases that are worth looking into. (e.g., jmap -histo <pid>)

Joe Liversedge
+2  A: 
Andrew Harmel-Law
+1  A: 

I like to use SAP Memory Analyzer, which is based in Eclipse. It works very well, also for large heap dumps!

david
+4  A: 

The Eclipse Memory Analyzer is the best tool for analysing the memory usage of java applications

kohlerm
+1  A: 

For initial investigation, you can start jconsole and attach it to a running process. This will allow you to see memory usage over time even in production, including garbage collections without the full impact of a profiler setup.

Thorbjørn Ravn Andersen