I wrote a quick application to test with:
I exported it as an executable jar (javaSandbox.jar), put it over to a remote server and ran it using this command:
That program runs without issue.
I bring up jconsole on my local box, and put in the hostname that the process is on and the port 5555. It fails to connect.
If I telnet to that host and port, it responds how I would expect:
I don't know why jconsole fails to connect. Anyone have any ideas?
Paul Clapham wrote:Here's the JMX system properties which I have for an application which is JMX-enabled:
I just tried doing the -Dcom.sun.management.jmxremote.ssl=false in addition to the arguments I listed earlier and it works now! From what I read in the documentation (and the fact that I don't have it), the -Dcom.sun.management.jmxremote argument is no longer needed as of Java 6.
Thanks for your help!
Michael Golightly wrote:From what I read in the documentation (and the fact that I don't have it), the -Dcom.sun.management.jmxremote argument is no longer needed as of Java 6.
Thanks for that info, my application predates our conversion to Java 6. So one of these days I should get rid of that property, I hate having fossils in my code.