It is likely that you have two installations of the JDK, validate that you are using the same JVM for both the Jconsole and the java process.
I had to add the following option when starting MemoryUsage:
for it to work.
Hope this helps
Were you able to use JConsole? Did you try using -Djava.rmi.server.hostname=localhost?
What problem do you have with Jconsole?
OK !!! I found the answer to this in order to make this work:
Open cmd with Admin Rights and run the MemoryUsage program like this:
java -Xmx25m -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9595 MemoryUsage
Then open another cmd with Admin rights and run jConsole. It should find the process and work fine.