Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4507533

HPROF: No heap dump generated (java.exe crashes or HPROF ERROR: heap dump size < 0)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.0, 1.4.1, 1.4.2
    • tools
    • 1.4.1
    • x86, sparc
    • generic, solaris_8

      To reproduce:
      java -Xrunhprof:heap=all -jar SwingSet2.jar

      Error got:
      HPROF ERROR: heap dump size < 0

      This is an intermittent error. Sometimes I also got the error when running
      hprof on Jmol application too or using -Xrunhprof:heap=dump too.

      See 4489387 and 4491764 for related info.

      This heap dump problem occurs on all platforms.


      -------------------------------------------
      updated 09/19/02 ###@###.###

      I ran the below command using J2SE 1.4.1-b21 on win2k and once the application starts loading, initiate heap dumps through CTRL-BREAK.

      $ /cygdrive/d/tmp/j2sdk1.4.1/bin/java -showversion -jar -Xrunhprof:heap=all ./SwingSet2.jar

      Try to take consecutive heap dumps (CTRL+BREAK) when the SwingSet2 demo is starting up and you will get the java.exe crash error. Licensee first discovered issue when taking heap snapshots in MemoryDebugger while the
      application being profiled was still being loaded. Dr Watson logs a java.exe crash when testing for this same functionality under -Xrunhprof:heap=all.

      Customer says this issue seems to have started around build 1.4.1-rc-b20. It exists in 1.4.1-rc-b21 as well. They did not get java.exe crash error under 1.4.1-rc-b18.

            ohair Kelly Ohair (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: