This content has been marked as final.
Show 2 replies
-
1. Re: RHQ cannot discover Tomcat6
genman Nov 14, 2012 2:42 PM (in response to bensonfungjava)The way that the agent discovers Tomcat is using a process scan.
<process-scan name="Tomcat" query="process|basename|match=^java.*,arg|org.apache.catalina.startup.Bootstrap|match=.*" /> Once it sees the process it tries to connect using JMX. If your agent isn't the same user, it will need to connect using JMX. The port should be exposed on the command line. The JVM settings I use are:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8889
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.local.only=true
-
2. Re: RHQ cannot discover Tomcat6
bensonfungjava Nov 14, 2012 9:32 PM (in response to genman)Thanks, Elias.
BTW, would you tell me where to put this xml fragment?
Thanks