There is a new tool called Java Monitoring & Management Console in 1.5 edition of J2SE (available as %JDK_HOME%\bin\jconsole.exe). Simply set
and start your Application Server or Servlet Container. Launch JConsole tool, and when asked for attaching, pick the appropriate process to attach.
Here is a link from Sun's Java website.
JAVA_OPTS=-Dcom.sun.management.jmxremote
and start your Application Server or Servlet Container. Launch JConsole tool, and when asked for attaching, pick the appropriate process to attach.
Here is a link from Sun's Java website.


Comments
Try the netbeans profiler or if you have resources to buy, yourkit profiler is a very good java profiler. you can try the software for 15 days.
Netbeans profiler is pretty good and should do most of your tasks