title: Connect to JBoss 7 using VisualVM
body: <p>I have remote JBoss 7.1 server and I would like to connect to this server by using VisualVM or JConsole.</p>
  
  <p>I googled a bit and found several threads/tutorials on how to connect to JBoss 7.1 by using VisualVM or JCoonsole, e.g.: </p>
  
  <ul>
  <li><a href="https://community.jboss.org/thread/171346?start=0&amp;tstart=0" rel="noreferrer">https://community.jboss.org/thread/171346?start=0&amp;tstart=0</a> </li>
  <li><a href="https://issues.jboss.org/browse/WFLY-895" rel="noreferrer">https://issues.jboss.org/browse/WFLY-895</a> </li>
  <li><a href="https://community.jboss.org/wiki/UsingJconsoleToConnectToJMXOnAS7" rel="noreferrer">https://community.jboss.org/wiki/UsingJconsoleToConnectToJMXOnAS7</a> </li>
  <li><a href="http://blog.akquinet.de/2012/11/01/connecting-visualvm-with-a-remote-jboss-as-7-eap6-jvm-process/" rel="noreferrer">http://blog.akquinet.de/2012/11/01/connecting-visualvm-with-a-remote-jboss-as-7-eap6-jvm-process/</a></li>
  </ul>
  
  <p>Unfortunately I had no luck in connecting to my JBoss 7.1 over JMX.</p>
  
  <p>Do you have any ideas how to connect to JBoss 7.1 with VisualVM?</p>
  
  <p>EDIT:
  I added -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.authenticate=false to standalone.conf.bat, but I got an exception:
  Caused by: java.lang.IllegalStateException: The LogManager was not properly inst
  alled (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager").</p>
  
  <p>So, I added another option to JAVA_OPTS: -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.authenticate=false -Djava.util.logging.manager=org.jboss.logmanager.LogManager
  but the exception I receive is this:</p>
  
  <pre><code>Could not load Logmanager "org.jboss.logmanager.LogManager"
  java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager
          at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
  </code></pre>