Thanks Mark! I was able to connect visualvm to Tomcat without SSH tunneling, that is a one step forward! But I'm still struggling with SSH tunneling. Let me show what I have configured.
I have a VirtualBox VM (Ubuntu-11.10) setup with a Tomcat (6.0.32) with the following configurations: - setenv.sh JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=tmoreira2020-VirtualBox -Dcom.sun.management.jmxremote.password .file=$CATALINA_HOME/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$CATALINA_HOME/conf/jmxr emote.access -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxrem ote.authenticate=false" - server.xml <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="8849" rmi ServerPortPlatform="8850" useLocalPorts="true" /> On my host machine I fired the tunneling with: *ssh -v -L10.226.2.212/8849/localhost/8849 -L10.226.2.212/8850/localhost/8850 192.168.56.101* and started a Visualvm trying to connect using the following url connection: *service:jmx:rmi:// 10.226.2.212:8850/jndi/rmi://10.226.2.212:8849/jmxrmi* these configurations seems to be the right ones but it does NOT work. I have tested several others without success either. What I'm missing? Thanks On Fri, Oct 21, 2011 at 11:17 AM, Mark Thomas <ma...@apache.org> wrote: > On 21/10/2011 13:56, Thiago Moreira (timba) wrote: > > org.apache.catalina.mbeans.JmxRemoteLifecycleListener > > Read this http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html > > > org.apache.catalina.mbeans.JMXAdaptorLifecycleListener but none of them > are > > available in Tomcat (ClassNotFoundException). > > Quoting the above docs: > This listener requires catalina-jmx-remote.jar to be placed in > $CATALINA_HOME/lib. This jar may be found in the extras directory of the > binary download area. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >