4

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?

staffan
  • 5,641
  • 3
  • 32
  • 28
Ivan Bosnic
  • 1,916
  • 5
  • 21
  • 31

3 Answers3

3

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:

  1. Start with -Dcom.sun.management.snmp.port=portNum
  2. Copy the ACL template file in JRE_HOME/lib/management/snmp.acl.template to JRE_HOME/lib/management/snmp.acl, and make it readable and writeable by only the owner.
staffan
  • 5,641
  • 3
  • 32
  • 28
0

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
  • 242
  • 2
  • 3
0

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
  • 131
  • 6