bcm_hyperic
Contributor
Contributor

Jetty monitoring and discovery issues

I've followed the instructions at http://support.hyperic.com/display/hypcomm/Jetty+6.x+server to configure my jetty server, but the agent is not discovering a jetty io service (platform is debian).

I've got "<Set name="statsOn">true</Set>" in my jetty connector config, a StatisticsHandler wrapping my other handlers, and remote jmx enabled (full details below). I can connect to the jvm with jconsole and browse jetty mbeans, though there is no mbean for the connector.

(note that I had to include jetty-jmx.xml as an additional config file when starting jetty in order for any of its mbeans to show up in jconsole, but it's had no effect on hq that I can see.)

the jetty server's jmx.url config prop is set to "service:jmx:rmi:///jndi/rmi://localhost:6969/jmxrmi", and auto-discover jetty ios is checked. when i save the configuration, the agent log reports the following:

2010-04-22 19:22:57,297 INFO [Thread-3] [RuntimeAutodiscoverer] Running runtime autodiscovery for Jetty 6.x
2010-04-22 19:22:57,350 INFO [Thread-3] [RuntimeAutodiscoverer] Jetty 6.x discovery took 0.03

what am I missing?

thanks!

-- /etc/default/jetty6

JMX_OPTIONS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6969 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTIONS="... $JMX_OPTIONS"

-- /etc/jetty6/jetty.xml

<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="host"><SystemProperty name="jetty.host" /></Set>
<Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set>
<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">true</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">5000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>
</New>
</Arg>
</Call>

...

<Set name="handler">
<New class="org.mortbay.jetty.handler.StatisticsHandler">
<Set name="handler">
<New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
<Set name="handlers">
<Array type="org.mortbay.jetty.Handler">
<Item>
<New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/>
</Item>
<Item>
<New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/>
</Item>
<Item>
<New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/>
</Item>
</Array>
</Set>
</New>
</Set>
</New>
</Set>
0 Kudos
0 Replies