Wednesday, 9 March 2011

How to enable the JVM SNMP Agent in a domain, without getting start/stop errors

  1. copy launcher.xml in logicalhost\is\lib to logicalhost\is\domains\<domain name>\config
  2. add the jvm snmp agent arguments as <sysproperty> elements under <launch>. e.g.:

    <sysproperty key="com.sun.management.snmp.interface" value="0.0.0.0" />
    <sysproperty key="com.sun.management.snmp.port" value="8888" />
  3. append the following string after 'LauncherBootstrap' in logicalhost\is\domains\<domain name>\bin\startserv:

    -launchfile "$INSTANCE_ROOT/config/launcher.xml"
Adding the SNMP parameters in domain.xml (as JVM option) produces the error "CLI157 Could not stop the domain".

This allows e.g. to monitor the JVM heapsize via Spectrum.