Enabling JMX (no security)
The following describes how to enable JMX instrumentation in a non-secure manner. Depending on your environment this may be sufficient and is relatively straightforward (in a production environment however, it is strongly recommended that you Enable JMX with the secure option).
Perform the following steps to enable JMX (non-secure):
- Stop the bundle service you wish to instrument.
-
Update the ‘<bundle>.jvm.settings’ property in the deploy.properties
file.
In the deploy.properties file each bundle has its own jvm.settings (such as core.jvm.settings, conversion.jvm.settings). You need to add the following settings from Oracle:
- -Dcom.sun.management.jmxremote
- -Dcom.sun.management.jmxremote.port=PORT_NUMBER
where PORT_NUMBER is an open port of your choice.
- -Dcom.sun.management.jmxremote.authenticate=false
- -Dcom.sun.management.jmxremote.ssl=false
For example:
core.jvm.settings=-Xms1024m -Xmx4g -XX:MaxPermSize=512M -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9994 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
- Run the configureBundle.groovy script to apply configuration.
- Restart the bundle service.