Configuring JMX and IBM Health Center

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.

To configure JMX for a JVM

Use one of the following procedures:

  • To configure JVMs in the JVM startup command

    1. 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 

    1. 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 ).

    2. 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.


    Tip

    For more information about setting up JMX configuration parameters for different JVM types, see the Knowledge Article 000102079. You can access the Knowledge Base directly at http://www.bmc.com/available/search-kb.html or from the BMC Support Central website (http://www.bmc.com/support). In addition, you can refer to the documentation from your JVM application.

    Note

    To enable collection of CPU consumption data on IBM CICS JVMs, ensure that the following JVM startup option is defined:

    -XX:+EnableCPUMonitor 

    For more information, see the IBM documentation on configuring CICS.

To configure the Health Center in the JVM startup command

  1. 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.

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Comments