visualvm cannot see a java process launched from cygwin

Viewed 3655

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?

4 Answers

The opposite approach to @seanhodges answer is to launch the application to debug with a modified environment, pointing it back to your Windows User Temp directory

For example if you normally do:

    ./gradlew run

And say your TEMP directory on Windows (according to your User environment variables) is:

    T:\Temp

You can do one of these instead:

    TMP=T:\\Temp ./gradlew run

    TMP=/cygdrive/t/Temp ./gradlew run

(they both seem to work)

Related