title: Accessing a remote MBean server
body: <p>I am running a client/server application using JBoss.</p>
  
  <p>How can I connect to the server JVM's MBeanServer? I want to use the MemoryMX MBean to track the memory consumption.</p>
  
  <p>I can connect to the JBoss MBeanServer using JNDI lookup but the java.lang.MemoryMX MBean is not registered with the JBoss MBeanServer.</p>
  
  <p>EDIT: The requirement is for programmatic access to the memory usage from the client.</p>