5 Replies Latest reply on Sep 19, 2011 6:55 PM by danhanley

    How do I enable the Sun JMX server?

    justinkwaugh

      I have added the typical system properties to standalone.conf.bat:

       

      set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=48002 -Dcom.sun.management.jmxremote.ssl=false"

       

      Now I get an error on startup that says:

       

      WARNING: Failed to load the specified logmodule org.jboss.logmanager:main

      Exception in thread "main" java.lang.ExceptionInInitializerError

              at org.jboss.as.server.Main.main(Main.java:81)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.modules.Module.run(Module.java:270)

              at org.jboss.modules.Main.main(Main.java:313)

      Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")

              at org.jboss.logmanager.Logger.getLogger(Logger.java:60)

              at org.jboss.logmanager.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)

              ... 7 more

      Press any key to continue . . .

       

      I have set that property as well, but I get a different error about not being able to find the log manager class.

       

      Any ideas?

        • 1. Re: How do I enable the Sun JMX server?
          paata

          I have the same problem .

          Can anyone help us ?

           

           

          How to run jboss as 7 with jmxremote ?

          • 2. Re: How do I enable the Sun JMX server?
            paata

            hello tem ?

             

            Is it possible ?

            I can't resolve this problem yet.

             

             

            I need to run jboss as 7 with jms remote enabled for memory management.

             

            Any idea will be appreciated.

             

             

            _______________________

            Regards,

            Paata Lominadze.

            • 3. Re: How do I enable the Sun JMX server?
              jaikiran

              set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=48002 -Dcom.sun.management.jmxremote.ssl=false"

               

              That doesn't look right.

               

              Please post the exact changes done and also the initial few logs that you see on the console (containing these params) when you start the server.

              • 4. Re: How do I enable the Sun JMX server?
                hibernal

                     make some socket-bindings:


                        <socket-binding name="jmx-connector-registry" port="1090"/>
                        <socket-binding name="jmx-connector-server" port="1091"/>

                 

                    and a jmx subsystem:

                 

                        <subsystem xmlns="urn:jboss:domain:jmx:1.0">
                            <jmx-connector server-binding="jmx-connector-server" registry-binding="jmx-connector-registry"/>
                        </subsystem>

                 

                see jboss-jmx.xsd for more options....

                 

                 

                • 5. Re: How do I enable the Sun JMX server?
                  danhanley

                  Using as7.1 alpha 1 it works remotely out of the box no extra config needed. just connect e.g. jconsole to port 1060 (make sure no firewall blocks etc).

                  Oddly it does not advertise itself for local connection, which is confusing.

                   

                  (earlier misleading post deleted. Thanks to darran lofthouse for pointing me the right way)