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

PermHeap bloat in and only in server VM

XMLWordPrintable

    • gc
    • 1.3.0
    • b01
    • x86, sparc
    • linux, solaris_8, solaris_9, solaris_10
    • Verified

        Description: With updating ClassLoader several times, jdk1.4.1_05 server VM will be down with an error java.lang.OutOfMemoryError.

        Environment:
        OS : Solaris8
        MPU: sparcv9 processor 450 MHz * 2
        Mem: 2048 Megabytes

        Reproduction:
        1. To unzip the attached tp.zip.
        2. To change the direcotory to tp.
        3. Set the JAVA_HOME variable viable in the script client.sh.
        4. To type "sh client.sh" to launch the test program.
        5. You will see the test program stop there and java.lang.OutOfMemoryError shown.
        ...
        [Loaded dummy.target.Target1692]
        [Loaded dummy.target.Target1693]
        [Loaded dummy.target.Target1694]
        [Loaded dummy.target.Target1695]
        [Loaded java.lang.ClassFormatError from
        /j2sdk1.4.1_05/jre/lib/rt.jar]
        java.lang.OutOfMemoryError
        [Loaded java.lang.StackTraceElement from
        /j2sdk1.4.1_05/jre/lib/rt.jar]
        [Loaded java.util.HashMap$KeyIterator from
        /j2sdk1.4.1_05/jre/lib/rt.jar]

         The test program test.MainEntry creates URLClassLoader that loads and destroy the classes in the package dummy. And those classes under dummy package are just for a burden test on VM. The VM args can be referenced in the script client.sh.


        2003-11-21
        Changed synopsis line from:

        PermHeap overflow in and only in server VM

        to:

        PermHeap bloat in and only in server VM

        so as to avoid customer confusion that this is a "leak"
        (which this is not). See evaluation and comments section
        for more details.

              ysr Y. Ramakrishna
              xiaojuzh Xiaojun Zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: