Experience Directory in Software

Java,J2EE,Oracle,Linux experience and workaround tips. If you have thought at least once like "How much should I learn technologies to be good enough developer?", Yes answer is here, just read this articles.All articles are made use at real project and making clients happy!

Thursday, March 06, 2008

Monitor Your Tomcat Application Memory use on JVM


Our application has a batch job included inside, it is called TimerTask.
And For be sure to know how much it affects memory use, We got to monitor JVM memory when the job runs.

Above Java5.0, Java SDK includes a monitoring tool itsefl called Jconsole.

here are some useful reference pages that I saw while I went on

How to use jconsole, what is jconsole, how it works, what we can do with it...
Using jconsole
Article:Using JConsole to Monitor Applications

How Java achieves and What Java bandles regarding to Monitoring java application.
Overview of Monitoring and Management
Monitoring and Management Using JMX


If you have any issues on it..
Frequently Asked Questions

when you need to know and configure Java launching,
you can refer this java command referentce
java - the Java application launcher


here is my case..
I need to monitar a tomcat application..


I opened startup.bat and added the following in just before calling catalina.bat line inside..

set JAVA_OPTS=-Dcom.sun.management.jmxremote=true

then open command prompt and run startup.bat then after execute jconsle command from same command prompt window.. that's all..

you will see tomcat application in jconsole window!

No comments:

The On Demand Global Workforce - oDesk