Configuring JMX settings on JBoss

Enable JMX on JBoss

  1. Restart JBoss with remote JMX monitoring enabled.

  2. Find a port that is not used on the server.

  3. Add the following entries to the JBoss run.bat or run.sh file:

    For run.bat:

    rem ————————————– 
    rem Enable Remote JMX Monitoring 
    rem ————————————- 
    set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=50050 
    set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false 
    set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false

    For run.sh:

    # ————————————- 
    # Enable Remote JMX Monitoring 
    # ———————————— 
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=50050″ 
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false" 
    JAVA_OPTS="SJAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false" 

Configure non-secure JMX connection requirements

In each of the plugin files (LiveCycle_Foundation-plugin.xml, LiveCycle_Process-plugin.xml, and LiveCycle_Services-plugin.xml) edit the following section. Change localhost to the IP address of the Agent computer. Change port number 8888 to the JMX port number specified in your JBoss run.bat or run.sh file.

<property name="PROC_QUERY" value="State.Name.eq=java,Args.*.ct=8888"/> 
<config> 
    <option name="jmx.url" description="JMX URL to MBeanServer" default="service:jmx:rmi:///jndi/rmi://localhost:8888/jmxrmi"/> 
    <option name="jmx.username" description="JMX username" optional="true" default=""/> 
    <option name="jmx.password" description="JMX password" optional="true" default="" type="secret"/> 
    <option name="process.query" description="PTQL for Java Process" default="State.Name.eq=java,Args.*.ct=8888"/> 
</config>

Configure secure JMX connection requirements

  1. Create a c:\JBOSS_HOME\bin folder on the Agent computer.

  2. Set up JMX for JBoss. See Monitoring and Managing JBoss Web and Using Password and Access Files.

  3. Adjust the “jmxjboss.password” security setting. See How to Secure Password File on Microsoft Windows Systems.

  4. In the LiveCycle_Foundation-plugin.xml file on the Agent computer, insert your JMX user name and JMX password. For example:

    <option name="jmx.username" description="JMX username" optional="true" default="monitorRole"/> 
    <option name="jmx.password" description="JMX password" optional="true" default="admin"/>
  5. In the LiveCycle_Process-plugin.xml file on the Agent computer, edit the settings in the PROC_QUERY section to match the setting in the LiveCycle_Foundation-plugin.xml file.

  6. In the LiveCycle_Services-plugin.xml file on the Agent computer, edit the settings in the PROC_QUERY section to match the setting in the LiveCycle_Foundation-plugin.xml file.

// Ethnio survey code removed