title: get a heap dump from a JRE only on Windows
body: <p>Our product runs on our customer's servers with only a JRE(no JDK) on Windows.</p>
  <p>I know that I can get a heap dump on OutOfMemoryError through a flag.</p>
  <p>However, is there a way to get a heap dump from the JRE JVM process proactively ?</p>
  <p>I was planning on getting a few healthy heap dumps and compare them with the heap dump obtained on OutOfMemoryError.</p>
  <p>Preferably, I should be able to ask the customer to download this tool/utility and then run it on the server to obtain the heap dump at will.</p>
  <p>I tried <a href="https://visualvm.java.net/download.html" rel="nofollow noreferrer">jvisualvm</a> however jvisualvm would not list our product jVM. It would only list some of the JVMs running at that time and not all the JVMs running at that time. PLUS jvisualvm is very bulky.</p>
  <p>P.S : Are there 3rd party utilities that can be executed on the host of JVM to dump the heap ? Also, customer cannot upgrade the JRE at this point of time. And none of the answers to the previous question are selected as answer!</p>
  <p>Thank you,</p>