2 Replies Latest reply on Nov 27, 2013 5:32 AM by Joe Lam

    JMX monitoring

    rs2715 Newbie

      Hi All,

      Please share the steps for enabling JMX remote monitoring for JBoss AS 7.1.0.CR1b and JBoss AS 7.1.1.Final.

      Thanks in advance.

       

      Regards,
      Rohit

        • 1. Re: JMX monitoring
          marcodanti Newbie

          You could start from Using jconsole to connect to JMX on AS7 for example

          • 2. Re: JMX monitoring
            Joe Lam Newbie

            1. copy the three jars to %JBOSS_BASE_DIR%/lib

            2. put below lines in standalone.bat

            3. Use JConsole or VisualVM to monitor the JVM


            set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false
            set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false
            set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=1099
            set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager
            set JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager

            set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%JBOSS_BASE_DIR%/lib/jboss-logmanager-1.2.2.GA.jar
            set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%JBOSS_BASE_DIR%/lib/jboss-logmanager-log4j-1.0.0.GA.jar
            set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%JBOSS_BASE_DIR%/lib/log4j-1.2.16.jar