javavisualvmjdk-tools

visualvm cannot see a java process launched from cygwin


If I start a java process in a cygwin console, and then launch visualVm, the later cannot see the former.

If I start the same process in a Dos console visualvm sees it fine. I am in jdk1.6.0_25. This happens both in win7 32b, and in win7 64b with a 64b jvm.

Anyone can think of an explanation/workaround?


Solution

  • I had the same problem. The vm was not shown automatically but I was able to connect via "Add JMX Connection", using hostname and jmx.remote.port...

    On VisualVM go to File -> Add JMX Connection

    localhost:3333
    

    Add vm parameter at startup e.g.:

     -Dcom.sun.management.jmxremote.port=3333
     -Dcom.sun.management.jmxremote.ssl=false
     -Dcom.sun.management.jmxremote.authenticate=false