The default location for JVisualVM's heapdump files in Linux is the /tmp/ directory. Because of my development machine's limitations, and the resource use of my application /tmp/ isn't big enough to capture the file. Is there a way to set this as a parameter in JVisualVM?
I'm looking for something like:
./jvisualvm --heaplocation /my/desired/location
I have created a symlink to the default location using the following:
ln -sf /my/desired/location/visualvm.dat
However, that is an ugly hack. Any suggestions?