Profiling a Java Application in Eclipse? (plug-in)

JavaEclipseOptimizationProfilingPlugins

Java Problem Overview


I'm looking to find bottlenecks in my Java application in Eclipse. I'm thinking this might be useful:

http://www.eclipse.org/projects/project_summary.php?projectid=tptp.performance

Any other good plug-ins to use?

EDIT OK, it doesn't necessarily have to be an Eclipse plug-in. But it would be nice. And, I'm most interested in speed.

Java Solutions


Solution 1 - Java

If you can, use jvisualvm in the Sun Java 6 JDK (IBM too). It works out of the box and can answer many of the initial questions.

Note that on Windows you need to invoke jvisualvm with the same Java binary as the program you want to investigate for best results.

(visualvm is a stand-alone subset of the Netbeans profiler)

Solution 2 - Java

In my experience, TPTP is something to run away from as fast as possible. It's a horribly overengineered mess, almost impossible to get to work, badly documented, and slow as molasses.

I'm not aware of any good and free profiling plugins for eclipse. But then, does it really have to be an eclipse plugin? VisualVM comes with the JDK since Java 6u7, is fast and easy to use. It may not be the most feature-rich of profilers, but has been sufficient for me.

Solution 3 - Java

YourKit is an excellent commercial profiler that has good Eclipse integration.

Solution 4 - Java

I found JProfiler (commercial) to be really helpful. It has Eclipse integration, although it is not an Eclipse plugin per sa', so you can very easily invoke a profiler instead of a regular execution session. It had very good bottleneck analysis and you can find-tune the settings to lower the overheads of the profiler itself. Highly recommended.

Solution 5 - Java

I've also used the Netbeans profiler which is pretty good. It's pretty easy to set it up to profile your Eclipse project while it is running in Eclipse. You don't need to open the project in Netbeans.

Solution 6 - Java

The Eclipse Memory Analyser has been helping me a lot recently.

Solution 7 - Java

If you are looking for a IBM JDK equivalent for visualvm, try the IBM Java Health Center: http://www.ibm.com/developerworks/java/jdk/tools/healthcenter/. It has some decent profiling capabilities, and is rather fast.

Solution 8 - Java

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNick HeinerView Question on Stackoverflow
Solution 1 - JavaThorbjørn Ravn AndersenView Answer on Stackoverflow
Solution 2 - JavaMichael BorgwardtView Answer on Stackoverflow
Solution 3 - JavaKevinView Answer on Stackoverflow
Solution 4 - JavazvikicoView Answer on Stackoverflow
Solution 5 - JavaJay AskrenView Answer on Stackoverflow
Solution 6 - JavaMario MarinatoView Answer on Stackoverflow
Solution 7 - JavaKiran SubbaramanView Answer on Stackoverflow
Solution 8 - JavaMike DunlaveyView Answer on Stackoverflow