views:

183

answers:

2

There are a lot of java profilers out there, any recommendations as to what would be best for profiling a java web start application that is being deployed to glassfish inside a war?

+1  A: 

Well, the traditional answers for such a question are VisualVM and/or Yourkit (if you have money).

If you go for VisualVM, this thread will help you to configure your Webstart application for JMX.

If you go for Yourkit, have a look at this discussion.

Pascal Thivent
You don't need JMX to run for visualvm to be able to connect if running on the same machine, only across the network.
Thorbjørn Ravn Andersen
I actually used the VisualVM tool that is packaged with the JDK. It is in the bin directory and called jvisualvm.exe. When running the web start application with java6, you have to turn off class sharing. I used the following command line to get it to work correctly with visualvm javaws -J-Xshare:off app.jnlpotherwise visualvm will crash.Thanks for the recommendation!
Casey
A: 

Here's a quick-and-dirty but simple, free, and effective way. It's language-agnostic, and the way it works is explained here.

Mike Dunlavey