I would like to monitor my Java application (running in JRockit) via SNMP protocol. I only need some basic informations. Is there any startup parameter that I can add to my app to enable SNMP?
A:
I don't believe JRockit can publish stats on SNMP. What I have seen monitoring systems do is hook-up the the JMX monitoring points within JRockit...
Of course you can also use the JRMC tool which is plugged into the JMX beans mentioned above.
HTH Tom
Tom
2009-05-13 14:05:18
A:
The standard JRockit JVM does not support SNMP. The most common approach is to attach a JMX SNMP Connector. I have previously used the AdventNet one.
Ben Turner
2009-05-13 14:12:57
+3
A:
SNMP in JRockit works the same way as in Sun's JVM. The details are on this webpage.
In short, what you have to do is:
- Start with
-Dcom.sun.management.snmp.port=portNum
- Copy the ACL template file in
JRE_HOME/lib/management/snmp.acl.template
toJRE_HOME/lib/management/snmp.acl
, and make it readable and writeable by only the owner.
staffan
2009-05-14 13:09:22