> Hi all,
>
[quoted text clipped - 10 lines]
>
> --Ganesan.
Edit catalina.bat (it is in $CATALINA_HOME/bin) and locate JAVA_OPTS
variable. Change it to look like this (you may want to append the
stuff if JAVA_OPTS already has something).
set JAVA_OPTS=-Dcom.sun.management.jmxremote -
Dcom.sun.management.jmxremote.port="9004" -
Dcom.sun.management.jmxremote.authenticate="false" -
Dcom.sun.management.jmxremote.ssl="false"
Save the file, and start tomcat.
Assuming you have JDK5 (not JRE), start jconsole. It should be in
$JDK_HOME/bin.
It will autodetect the JMX connection on local box, so go ahead
connect. Click around the tabs at the top (summary, memory, threads..)
to see the monitoring in action.
Translate the above into *nix if you are not using Windows.
If you want a tutorial on what JMX is, google around and there is
plenty of stuff.
http://java.sun.com/docs/books/tutorial/jmx/index.html
-cheers,
Manish