ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
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. :) _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Thank you. Before posting my question, I have studied http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It explains the way to activate HTTP adaptor. I have also browsed the mx4j website and found little information. MC4j(http://mc4j.org/confluence/display/MC4J/Home?) that you suggest really do me a lot. Finally I am able to monitor the tomcat via RMI connector. Thanks a lot. cylinder From: Dirk Weigenand [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR Date: Wed, 21 Sep 2005 11:49:58 +0200 (MEST) Hi, --- Urspr�ngliche Nachricht --- Von: jiang ying [EMAIL PROTECTED] 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] _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
I did follow the link to SUNs web site and did the exercise. I know how to use JMX, but I don't know how to get the mbeanserver that the tomcat JMX support registed. And I've been searching the material about mx4j at all times :(. From: Dirk Weigenand [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR Date: Wed, 21 Sep 2005 16:57:20 +0200 (MEST) Hi, Before posting my question, I have studied http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It explains the way to activate HTTP adaptor. Well it explains how to activate jmx remote monitoring right at the start of the page. Did you follow the link to SUNs web site? There you'll find a thorough explanation what all the possible properties and their meaning are. I mean the properties in those boxes in the 'Enabling remote JMX' section, i.e.: set CATALINA_OPTS=-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=%my.jmx.port% \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false Regards Dirk -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen f�r GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
well, after studied MC4j, I've already solved the problem with the code String urlForJMX = service:jmx:rmi:///jndi/rmi://localhost:9004/jmxrmi; MBeanServerConnection jmxServerConnection = JMXConnectorFactory.connect( new JMXServiceURL( urlForJMX ), null).getMBeanServerConnection(); A little different from yours, but it works. :) I've been wasting time finding the solution about mx4j and finally solved it by using mc4j. Thank you. :) From: Dirk Weigenand [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR Date: Wed, 21 Sep 2005 17:58:33 +0200 (MEST) Hi, --- Urspr�ngliche Nachricht --- Von: jiang ying [EMAIL PROTECTED] An: tomcat-user@jakarta.apache.org Betreff: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR Datum: Wed, 21 Sep 2005 23:38:36 +0800 I did follow the link to SUNs web site and did the exercise. I know how to use JMX, but I don't know how to get the mbeanserver that the tomcat JMX support registed. And I've been searching the material about mx4j at all times :(. Mmh, using SUNs reference implementation: MBeanServer mbeanServer = (MBeanServer)MBeanServerFactory.findMBeanServer( null ).get( 0 ); -- 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse f�r Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]