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 \\
new and better solution than using a manually coded agent, is to use the new parameter which seems to be introduced in Java 7:
-Dcom.sun.management.jmxremote.rmi.port=7091
So in combination - same port can be used:
-Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.rmi.port=7091
Solution found here: http://hirt.se/blog/?p=289