Reputation: 2006
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?
Upvotes: 4
Views: 1078
Reputation: 5711
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:
-Dcom.sun.management.snmp.port=portNum
JRE_HOME/lib/management/snmp.acl.template
to JRE_HOME/lib/management/snmp.acl
, and make it readable and writeable by only the owner.Upvotes: 3
Reputation: 131
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.
Upvotes: 0
Reputation: 262
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
Upvotes: 0