Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat 6, JMX and the dynamic port problem
    primarykey
    data
    text
    <p>after reading and trying a lot around, I have to ask if anyone has a solution for my problem.</p> <p>I am trying to set up some Tomcats (V6) behind a firewall. This is no big deal - but I want to monitor them via JMX.</p> <p>I read the TC docu and came across the <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html" rel="noreferrer">JMXRemoteLifecycleListener</a>. My test TC installation is set up exactly as stated in the above link. Thus I don't get a connection from one host in our network to another. Additionally a third, random port is open every time I start TC.</p> <p>In my server.xml the listener is activated</p> <pre><code>&lt;Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="8050" rmiServerPortPlatform="8060" /&gt; </code></pre> <p>catalina.out says that everything is okay.</p> <pre><code>2011-06-14 16:46:48,819 [main] INFO org.apache.catalina.mbeans.JmxRemoteLifecycleListener- The JMX Remote Listener has configured the registry on port 8050 and the server on port 8060 for the Platform server </code></pre> <p>The ports are open, I can connect to them via telnet from any other host. I am able to connect to to the vm locally with (<code>service:jmx:rmi://&lt;hostname&gt;:8xxx/jndi/rmi://&lt;hostname&gt;:8xxxx/jmxrmi</code>)</p> <p>Netstats output is as follows:</p> <pre><code>tcp6 0 0 :::8080 :::* LISTEN 11291/java tcp6 0 0 :::8050 :::* LISTEN 11291/java tcp6 0 0 :::8060 :::* LISTEN 11291/java tcp6 0 0 127.0.0.1:8005 :::* LISTEN 11291/java tcp6 0 0 :::60901 :::* LISTEN 11291/java tcp6 0 0 127.0.0.1:8009 :::* LISTEN 11291/java </code></pre> <p>Tomcat is even started with all sufficient VM options</p> <pre><code>CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=TRUE -Dcom.sun.management.jmxremote.password.file=$CATALINA_HOME/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$CATALINA_HOME/conf/jmxremote.access" </code></pre> <p>Does anyone has a hint why I am stuck here? Thanks in advance!</p>
    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.
 

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