Dirk is correct you need to check out the doc in order to understand your 
options. To add a little specificity to your challenge, you need to do at least 
the following to get going: 
 
1) set remote monitoring options when you are starting the JVM. This can be 
accomplished multiple ways. One place is in catalina.bat

        1) set remote monitoring port   -Dcom.sun.management.jmxremote.port=NNNN
        2) turn on remote monitoring    -Dcom.sun.management.jmxremote

        there are others for SSL and authentication and you have to decide if 
they are needed.

2)  create the RMI connector client in a very small bit of java code as well as 
establish as use the MBeanServerConnection class to access TOMCAT domains and 
MBeans.

 

THis is probably about a 1/2 dozen LOC to gain access and there are examples to 
be found.

 

You can use JConsole (JMX monitoring from SUN)  which is located in the JDK 1.5 
BIN directory to validate configuration tasks without any coding or installing 
any other software. 

 

hope this helps. 

 

- andy  
 

Dirk Weigenand <[EMAIL PROTECTED]> wrote:
Hi,

> --- Ursprüngliche Nachricht ---
> Von: "jiang ying" 
> An: tomcat-user@jakarta.apache.org
> Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
> Datum: Wed, 21 Sep 2005 16:26:00 +0800
> 
> hi, I know the way to access Tomcat JMX support via http adaptor.
> I also know how to monitor an application via JMX by registering an 
> mbeanserver.
> But I really confused about accessing Tomcat JMX support via RMI
> connector:
> 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
> Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
> 2. after configuring RMI connector, how can I access Tomcat JMX support 
> programmatically? I am not clear about the mbeanserver that tomcat mbeans 
> has been registed. How can I make use of the connector, thread pool, 
> servlet information that Tomcat has already monitored and controlled.
> Thank you. 
> :)
> 

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
Dirk

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




                
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Reply via email to