Configuring JMX on Apache Tomcat

This topic describes how to enable JMX on Apache Tomcat in Cloverleaf. The JMX protocol can remotely monitor and manage Apache Tomcat.

Note: This is for Cloud-only installations.
  1. Enable JMX on Apache Tomcat in Cloverleaf.
    1. Start the Host Server/Security Server and open Server Administration.
    2. On the Advanced tab, configure the JVM Arguments.The JVM argument is:
      -Dcom.sun.management.jmxremote 
      -Dcom.sun.management.jmxremote.port=%my-jmx-port% 
      -Dcom.sun.management.jmxremote.ssl=false 
      -Dcom.sun.management.jmxremote.authenticate=false

      %my-jmx-port% is the port number that you can modify.

      Example: The JVM arguments configured in Server Administration would be:

      -Dcom.sun.management.jmxremote 
      -Dcom.sun.management.jmxremote.port=5551 
      -Dcom.sun.management.jmxremote.ssl=false 
      -Dcom.sun.management.jmxremote.authenticate=false
      Note: If the Host Server and Security Server are installed on the same machine, ensure %my-jmx-port% is different. If this port is not different, then the Server cannot successfully start.
    3. Click Save.
    4. Restart the Host Server and Security Server

      Verify the Host Server and web service successfully start, or the Security Server successfully starts.

      This JVM arguments must be certified on CIS19.1.0.0.

  2. Connect to the Tomcat JMX using Jconsole.
    1. Run jconsole.
    2. Select Remote Process and enter the server Host and port number
    3. Click Connect.
      Note: If your Jconsole and Tomcat are not on the same machine, then ensure the firewall is closed.