I\'m trying to connect jconsole to a jvm invoked by:
java \\
-Djava.util.logging.config.file=./logging.properties \\
-Dcom.sun.management.jmxremote.ssl=false \\
The out-of-the-box JMX implementation uses two ports - one for the registry (the one that you specified) and one for the actual connection which is selected randomly (!). This is quite a design flaw since the random selection of the second port makes it very hard to configure a firewall.
There are ways around it however - either you can do it yourself manually, or if you are using Tomcat you let it handle it for you.