Cygwin - VisualVM

I tried to use VisualVm for profiling purposes in my current development setup (running Win7 and Cygwin). But the tool did not find my running Java server nor the client, only Eclipse IDE was listed as local application. After some research on the web I figured out that VisualVM searches for the PID file of running java processes in the system's temporary folder. Because of starting the server and client on commandline via Cygwin the PID files were stored in Cygwin's /tmp folder (which is by default not the same than the system' temp).

Solution:
I changed the temporary path of Cygwin to the system's one by adding to ".bashrc" (in my case on drive with letter "d"):


export TMP="/cygdrive/d/tmp"
export TEMP="/cygdrive/d/tmp"

No comments:

Post a Comment