0 Replies Latest reply: Apr 12, 2010 1:59 AM by 843798 RSS

    jmap and large core dumps


      currently I've a problem with jmap and large core dumps created by gdb on Linux.

      I've created a core dump with gdb and tried to attach jmap to the core dump to create a heap dump, but got the following error message:
      Error attaching to core file: Can't attach to the core file

      When I start jmap with strace, it shows me this error:
      open("/tmp/tomcat.core", O_RDONLY) = -1 EFBIG (File too large)

      The size of the core dump is:
      ll tomcat.core
      -rwxr-xr-x 1 root root 2193821432 Apr 7 12:08 tomcat.core

      I found the following bug report:
      This bug is nearly two years old, but it seems it is not fixed yet.

      Does anyone know another working way to obtain the heap dump from such large core dump files?
      Attaching jmap to the process is not an option in this case, it just takes too long to generate the heap dump.

      JDK version is jdk1.5.0_16