Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Profiling a Java Application in Eclipse? (plug-in) [closed]

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.

like image 743
Nick Heiner Avatar asked Oct 16 '09 19:10

Nick Heiner


People also ask

What is profiling mode in eclipse?

The Eclipse Test & Performance Tools Platform (TPTP) Profiling tool can be used to profile Eclipse plug-ins, local Java(TM) applications or complex applications running on multiple hosts and different platforms. The tool is tightly integrated with Eclipse, allowing profiling of applications running from within Eclipse.

Is Eclipse Profiler a Java profiler?

Java profiling in Eclipse allows you to optimize your code, streamline your application, and better understand your program. When profiling your application using a line-level analysis, you can reveal the slowest line within a sluggish piece of code, helping you efficiently troubleshoot problems.

Why it is not showing run as Java application in Eclipse?

Run As > Java Application wont show up if the class that you want to run does not contain the main method. Make sure that the class you trying to run has main defined in it. It did have. It is just that it didn't show the run as app.

How do I close a Java program in Eclipse?

Click on the terminate icon (red square) in the console view.


1 Answers

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)

like image 166
Thorbjørn Ravn Andersen Avatar answered Sep 22 '22 18:09

Thorbjørn Ravn Andersen