title: Unable to Connect to Tomcat Using VisualVM
body: <p>I am having problems monitoring a remote Tomcat process.  I'm trying to use the Java 6 versions of <strong>JConsole/JVisualVM</strong>.  </p>
  
  <p>I have jstatd running on the remote server with the appropriate security policy.  The process is started and the TCP connections are available.</p>
  
  <p>When I try to connect through JConsole, I get <code>'Connection Failed:jmxrmi'</code>.  </p>
  
  <p>When I try to connect through VisualVM, I add the host name and my right-click options are 'Add JMX Connection'.  It's unclear to me from the docs whether or not that's what I'd expect to see.  When I try to connect, I get: </p>
  
  <pre><code>'Cannot connect using service:jmx:rmi:///jndi/rmi://&lt;host&gt;:&lt;port&gt;/jmxrmi'.
  </code></pre>
  
  <p>So, the docs suggest I only need have jstatd running remotely to monitor in VisualVM, while the UI is asking for jmxrmi .. Are those the same?  I've tried setting up tomcat using jmx rmi options and I also timeout, though I know it's not a firewall issue.  </p>
  
  <p>If anyone has had success getting a remote Tomcat process attached in this manner, and could describe how, that would help me out a great deal.</p>