title: Best method for inspecting Elastic Beanstalk JVM heap
body: <p>I'm need to get a JVM heap dump from an Elastic Beanstalk server, but the server doesn't have jcmd or jmap. Amazon doesn't natively install them with the JDK. Here's what's installed:</p>
  
  <pre><code>[ec2-user@ip-x-x-x-x ~]$ sudo yum list installed|grep jdk
  java-1.7.0-openjdk.x86_64             1:1.7.0.111-2.6.7.2.68.amzn1 @amzn-updates
  java-1.8.0-openjdk.x86_64             1:1.8.0.101-3.b13.24.amzn1   @amzn-updates
  java-1.8.0-openjdk-headless.x86_64    1:1.8.0.101-3.b13.24.amzn1   @amzn-updates
  </code></pre>
  
  <p>What's the best way to get a heap dump from the JVM on Elastic Beanstalk?</p>