tags:

views:

2836

answers:

10

What can you guys recommend to use with Java?

Only requirement is it should be open source, or has not too expensive academic licence .

+3  A: 

Eclipse TPTP

Here's an article about Java Application Profiling using TPTP and here's a tutorial Profiling J2SE 5.0 based applications using Eclipse TPTP.

lothar
I've never been able to set TPTP up. Perhaps I'm too dumb to use it.
quant_dev
@quant_dev: I have had the same problem but somehow accidently managed to have it set up suddenly (eclipse restarted or whatever?). But when I used it it turned out to be almost useless, was incredibly slow and resource hungry to the point where I had kill eclipse. Some of the more usefull views that were mentioned in several references I found online also don't seem to exist anymore in the current realease that works with eclipse 3.5. So at the moment it's basically just a huge BLOB of uselessness.
x4u
Eclipse TPTP looks like a mature product but is extremely slow. I cannot understand why...
Roalt
+17  A: 

The VisualVM which comes with jdk6 has a basic profiler inside it. VisualVM is provided with the jdk, so if you have the jdk6 installed, you likely have it installed as well.

https://visualvm.dev.java.net/docindex.html

Chi
The VisualVM profiler is a stand-alone version of the one in NetBeans. It is a VERY good start.
Thorbjørn Ravn Andersen
Definitely download the most updated version on: https://visualvm.dev.java.net/ . Also: this IS the profiler NetBeans uses.
Peterdk
+1  A: 

Netbeans IDE includes a free profiler.

Also, if I remember correctly, the academic license for JProfiler is (relatively) inexpensive.

Paul Morie
OP did ask for "not too expensive academic licence". A single academic licence for JProfiler is US$199
masher
He asked for something that was open source or had an inexpensive academic license. In my opinion, US$199 is fairly inexpensive for a tool that costs $499 for a normal license.
Paul Morie
+4  A: 

Ah. Netbeans Profiler, developer.com's "product of the year" winner. Look at Netbeans full feature profiling functionality.

Adeel Ansari
+5  A: 

Java has a basic built in profiler called HProf. I find it useful to compare the results it provides with results from more fully features profilers.

Peter Lawrey
I've used HPROF for years - and while it may not be pretty, it's helped me solve countless memory and performance issues.
Gandalf
HPROF often finds different points to optimise. I often use it after YourKit no longer gives me obvious points to optimise.
Peter Lawrey
+1  A: 

If you are looking for a no-frills, easy to use open source profiler, you may want to take a look at Jip (Java Interactive Profiler). It's published under a BSD license. I found it to be quite useful for small programs. At least, the results it gives are way more easy to understand than hprofs output.

Martin Dirichs
+4  A: 

I can highly recommend YourKit profiler. It's an awful lot better than JProfiler, in my experience, and the support is excellent.

US$135 for an academic licence.

skaffman
what are you allowed to do with the academic license??
Seun Osewa
A: 

This is quick, dirty, and very effective.

Mike Dunlavey
+1  A: 

you've got a list here

LB
+1 for great find
bguiz
+2  A: 

JRockit Mission Control, it's free to use for development and it integrates with Eclipse. It has very low overhead (<1%) since it piggybacks on the data the JVM is gathering anyway.

It's very easy to use and it can also give a lot information you typically won't find in other profiling tools, e.g. latency profiling, online memory inspection, detailed gc statistics

Kire Haglin