Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unfortunately JMX tries to open ports other than the one you configure. Just yesterday I succeeded connecting to tomcat behind firewall via JMX. The two tricky parts are:</p> <ul> <li><p>put a file called <code>jmxremote.access</code> in <code>CATALINA_HOME/conf</code>, which contains the following lines:</p> <pre><code>monitorRole readonly controlRole readwrite </code></pre></li> <li><p>in <code>server.xml</code> set the ports that will be used by jmx, via a special tomcat listener (catalina-jmx-remote.jar required in /lib):</p> <pre><code>&lt;Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="9009" rmiServerPortPlatform="9010" /&gt; </code></pre></li> </ul> <p>Then open these two ports on the firewall. It works. But that's just for tomcat.</p> <p>Another option is to use <a href="http://www.google.com/search?hl=&amp;q=ssh+tunneling&amp;sourceid=navclient-ff&amp;rlz=1B3GGGL_en___BG265&amp;ie=UTF-8" rel="nofollow">ssh tunnelling</a>. In short - you connect via SSH and configure it to forward some local port (where the jmx client is running) to some ports on the other side of the tunnel.</p> <p>References:</p> <ul> <li><a href="http://gabenell.blogspot.com/2010/04/connecting-to-jmx-on-tomcat-6-through.html" rel="nofollow">Connecting to JMX on Tomcat 6 through a firewall</a> </li> <li><a href="http://blogs.oracle.com/divyen/entry/connecting_mysql_server_on_amazon" rel="nofollow">Connecting MySQL server on Amazon EC2 instance using ssh tunnel</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload