title: Specify JVisualVM Heap Dump File Location on Linux
body: <p>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?</p>
  
  <p>I'm looking for something like:</p>
  
  <pre><code>./jvisualvm --heaplocation /my/desired/location
  </code></pre>
  
  <p>I have created a symlink to the default location using the following:</p>
  
  <pre><code>ln -sf /my/desired/location/visualvm.dat
  </code></pre>
  
  <p>However, that is an ugly hack. Any suggestions?</p>