I'm using Sun's SDK 1.4.2_02 on a Redhat linux 9.
The application server being used is JBoss 3.21.
Recently, I've been assigned a task to improve performance of our
application
(web + EJB). I'll use a Java profiler for locating bottlenecks.
I've done a little survey, and came up with the following profilers:
- JProfiler
- JProbe
- OptimizeIt
I'd like to hear you experiences with these products and comparisons
if you've used more than one (plus pricing).
Two other things:
- Our bottlenecks are probably around database access.
- Integration with Eclipse is nice but not mandatory.
Robert Klemme - 27 May 2004 12:16 GMT
> I'm using Sun's SDK 1.4.2_02 on a Redhat linux 9.
> The application server being used is JBoss 3.21.
[quoted text clipped - 6 lines]
> - JProbe
> - OptimizeIt
Of these I prefer Optimizeit because it runs smooth and has a lot nice
memory profiling features. JProbe may have improved in the meantime, but
the version I have used two years ago wasn't so nice. Optimzeit is not
really what I'd call "cheap" but it's worth the money, especially if you
want to do memory profiling (number of created instances per method and
stuff like that).
For performance measurements I use the built in profiler:
java -Xrunhprof:help will give you help on this. There are free tools to
view the output, namely:
HP's JMeter http://www.hp.com/products1/unix/java/hpjmeter/
PerfAnal
http://java.sun.com/developer/technicalArticles/Programming/perfanal/
PerfAnal is better at helping you finding the execution branch that is
responsible for most of a method's invocations, while JMeter can show
different metrics. Above that JMeter can compare statistics of two runs
to identify where things have changed.
> I'd like to hear you experiences with these products and comparisons
> if you've used more than one (plus pricing).
>
> Two other things:
> - Our bottlenecks are probably around database access.
Then you'll need a database specific profiling tool. DB vendors usually
ship one with the db.
> - Integration with Eclipse is nice but not mandatory.
There is a profiler plugin:
http://eclipsecolorer.sourceforge.net/index_profiler.html
IMHO this does not run as smooth as OptimizeIt and thus I still prefer the
standalone method with -Xrunhprof.
Regards
robert
Scott Ellsworth - 27 May 2004 18:34 GMT
> I've done a little survey, and came up with the following profilers:
> - JProfiler
Used it, bought a license. What it does, it does very well. Further,
there is a trial, so you can see if its strengths match your problem set.
> - JProbe
Have not used, as it does not run on my Mac.
> - OptimizeIt
Their support has gone way downhill since Borland bought them. A nice
profiler, but not one I would invest in unless I had to.
Of course, if your bottlenecks are database access, a profiler will not
help a lot beyond identifying that fact. That said, it is worth using
it just to confirm. I had one serious problem that turned out to be
hitting the same table over and over again, several hundred thousand
times during a run, when a slightly better query and a simple cache
dropped us to one hit every five minutes.
Scott
Vladimir Kondratyev - 01 Jun 2004 20:06 GMT
Hello Jonathan,
take a look at YourKit Java Profiler (http://www.yourkit.com). This is
outstanding CPU and memory profiler. It's specially designed to
profile application server memory without any performance overhead.
Best regards,
Vladimir Kondratyev
Bob Kranson - 18 Jun 2004 15:02 GMT
http://www.compuware.com/products/devpartner/java.htm
> I'm using Sun's SDK 1.4.2_02 on a Redhat linux 9.
> The application server being used is JBoss 3.21.
[quoted text clipped - 13 lines]
> - Our bottlenecks are probably around database access.
> - Integration with Eclipse is nice but not mandatory.
Stephen Kellett - 18 Jun 2004 23:32 GMT
>http://www.compuware.com/products/devpartner/java.htm
http://www.softwareverify.com
Its in beta. Its easy to get on the beta program, just be honest about
who you are.
Stephen

Signature
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk
RSI Information: http://www.objmedia.demon.co.uk/rsi.html