> From: Anamika raj [mailto:rajnam...@gmail.com]
> Subject: Re: how to setup jconsole to monitor tomcat locally
> 
> hi i m not getting the meaning of that
> 
> [ " create CATALINA_HOME/bin/setenv.sh

CATALINA_HOME refers to the directory in which you have Tomcat installed.

> 3. Make it executable

Automatic on a Windows system.

> 4. Add the following to setenv.sh

As stated before, this will be setenv.bat on Windows.

> export CATALINA_OPTS="-Dcom.sun.management.jmxremote"    "]

You don't use "export" on Windows, you use "set".

Create the file setenv.bat in Tomcat's bin directory; the file should consist 
of the single line:

set CATALINA_OPTS=-Dcom.sun.management.jmxremote

When you start Tomcat via startup.bat, it will automatically invoke your 
setenv.bat script thus creating the CATALINA_OPTS environment variable with the 
necessary JMX setting.  This value will automatically be used on the java.exe 
command line that starts Tomcat, thus making local access by JConsole possible.

> please tell me clearly the meaning of that line

Anyone trying to run system software like Tomcat is expected to have some 
familiarity with the platform they're running it on, including the ability to 
create simple .bat scripts.  You need to learn some Windows basics.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to