title: Heap dump error on Centos 64bit and openjdk 7
body: <p>I'm trying to generate a heap dump on my machine that is running a glassfish 3.1.2 using a open-jdk7 java.</p>
  
  <p>I'm using the following command :</p>
  
  <pre><code>jmap -dump:live,format=b,file=dump.t -F 24935
  </code></pre>
  
  <p>But I keep getting this error :</p>
  
  <pre><code>Attaching to process ID 24935, please wait...
  Debugger attached successfully.
  Server compiler detected.
  JVM version is 23.7-b01
  Dumping heap to dump.t ...
  Exception in thread "main" java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at sun.tools.jmap.JMap.runTool(JMap.java:197)
          at sun.tools.jmap.JMap.main(JMap.java:128)
  Caused by: sun.jvm.hotspot.utilities.AssertionFailure: Expecting GenCollectedHeap, G1CollectedHeap, or ParallelScavengeHeap, but got sun.jvm.hotspot.gc_interface.CollectedHeap
          at sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
          at sun.jvm.hotspot.oops.ObjectHeap.collectLiveRegions(ObjectHeap.java:605)
          at sun.jvm.hotspot.oops.ObjectHeap.iterate(ObjectHeap.java:244)
          at sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.write(AbstractHeapGraphWriter.java:51)
          at sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:416)
          at sun.jvm.hotspot.tools.HeapDumper.run(HeapDumper.java:56)
          at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
          at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:77)
          ... 6 more
  </code></pre>
  
  <p>Here is my full java version :</p>
  
  <pre><code>[ufasoli]$ java -version
  java version "1.7.0_19"
  OpenJDK Runtime Environment (rhel-2.3.9.1.el6_4-x86_64)
  OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
  </code></pre>
  
  <p>The exact CentOS version is :</p>
  
  <pre><code>CentOS release 6.3 (Final)
  </code></pre>
  
  <p>Any ideas?</p>