Java address spaces need to communicate with the MainView for Java Environments PAS to collect JMX data and Health Center data.
In order to collect JMX data and Health Center data for a JVM, you need to configure the JVM by adding Java properties to the JVM profile.
Use the following procedures to configure JMX and the Health Center for each target JVM that you want to monitor.
Use one of the following procedures:
To configure JVMs in the JVM startup command
Click here to expand...
In the JVM profile, specify the following Java properties for each JVM that you want JMX to monitor:
-Djavax.management.builder.initial= (specify this property for only WAS (WebSphere Application Server) JVMs)
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=<nnnn>
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname=<hostName>
Note
You must define a unique port number for each JVM that you want to monitor.
To configure JVMs using your JMX configuration file
Click here to expand...
In the JVM startup command, specify the following string:
-Dcom.sun.management.config.file=<filePath>
Replace filePath with the location of your JMX configuration file (such as /MyDirectory/MyJmxConfigFile ).
In your configuration file, specify the following Java properties:
javax.management.builder.initial= (specify this property for only WAS (WebSphere Application Server) JVMs)
com.sun.management.jmxremote
com.sun.management.jmxremote.port=<nnnn>
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
java.rmi.server.hostname=<hostName>
Note
You must define a unique port number for each JVM that you want to monitor.
Note
To enable collection of CPU consumption data on IBM CICS JVMs, ensure that the following JVM startup option is defined:
For more information, see the IBM documentation on configuring CICS.
In the JVM profile, specify the following Health Center properties for each JVM that you want to monitor:
-Xhealthcenter:level=off,port=<nnnnn>,transport=jrmp
-Dcom.ibm.diagnostics.healthcenter.data.profiling=off
Note
Specifying the port is optional. The Health Center agent will start looking for an available port from port 1972 (or the specified port) for 100 ports.