1 Reply Latest reply on May 18, 2012 5:07 PM by Peter Johnson

    Allowing VisualVM to connect to JBossAs on RaspberryPi

    Jesper Skov Newbie

      Hi

       

      I just got my small application running on a RaspberryPi under JBoss 7.1.1.

       

      Since it doesn't have a lot of RAM, I'm curious as to how well the VM fares memory wise.

       

      So I tried adding these options to JAVA_OPTS in standalone.sh:

      -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=4545 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

       

      But it fails to start up with:

       

      WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager

      Exception in thread "main" java.lang.ExceptionInInitializerError

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

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

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

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

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

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

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

      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

       

      I tried also setting the suggested option, but I just got the same message.

       

      I did find scripts to run JBoss directly under jvisualvm, but the Pi doesn't have the RAM to run both...

       

      Any hints for how to connect to the server from VisualVM on a remote box?

       

      Ta,

      Jesper