From OpenNMS
_snd said he could not add a discussion
And I couldnt untill I validated my email. So there. Pebkac to you!
Anyway, as I mailed Sortie:
I signed up to get an account to edit the JVM monitoring page on your wiki, and I didn't want to tarnish the article by currecting it, but wanted to add a subtle point:
##################################################################### # Default Configuration File for Java Platform Management ##################################################################### # # The Management Configuration file (in java.util.Properties format) # will be read if one of the following system properties is set: # -Dcom.sun.management.jmxremote.port=<port-number> # or -Dcom.sun.management.snmp.port=<port-number> # or -Dcom.sun.management.config.file=<this-file> # # The default Management Configuration file is: # # $JRE/lib/management/management.properties # # Another location for the Management Configuration File can be specified # by the following property on the Java command line: # # -Dcom.sun.management.config.file=<this-file> # # If -Dcom.sun.management.config.file=<this-file> is set, the port # number for the management agent can be specified in the config file # using the following lines:
You recommend just setting -Dcom.sun.management.snmp.port=<port-number> and then the file will be read magically, but if you want to keep config in the actual file, and possibly in an alternate location so that only OpenNMS' JVM will get the properties, then use -Dcom.sun.management.config.file=.
Also, it has two words on where the file is located by default, this took me some tinkering to get to add up, but then I run a warped OS.






