title: How do I produce a heap dump with only a JRE?
body: <p>We have a JRE installed on our production environment, but not a JDK. The versions of the JRE and OS are below.</p>
  <pre><code>[me@mymachine ~]$ java -version
  java version &quot;1.6.0_45&quot;
  Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
  Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
  [me@mymachine ~]$ uname -a
  Linux mymachine.mydomain.com 3.10.35-43.137.amzn1.x86_64 #1 SMP Wed Apr 2 09:36:59 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
  </code></pre>
  <p>It doesn’t appear as if the <code>jmap</code> tool is present anywhere on the system, and without root access, I’m not in a position to install it in any system location.  What can I do to get a heap dump (i.e. produce a <code>.hprof</code> file)?</p>
  <p>Also, we're using JBoss 7.1.3.AS if that matters.</p>