IBM Support

IV50705: NATIVE MEMORY LEAK DUE TO INFLATER WITH URLCLASSLOADER.FINDRESOU RCE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: Taken a java stack trace from Inflater.init() shows
    a huge number of the following stack trace.
    17:23:25.272 0x2054e100              mt.4        >
    java/util/zip/Inflater.init(Z)J Compiled static method
    17:23:25.272 0x2054e100       j9trc_aux.0        - jstacktrace:
    17:23:25.272 0x2054e100       j9trc_aux.1        - <OSB>1<CSB>
    java.util.zip.Inflater.init (Native Method)
    17:23:25.272 0x2054e100       j9trc_aux.1        - <OSB>2<CSB>
    java.util.zip.Inflater.<init> (Inflater.java:94) (Compiled Code)
    17:23:25.272 0x2054e100       j9trc_aux.1        - <OSB>3<CSB>
    java.util.zip.ZipFile.getInflater (ZipFile.java:313)
    17:23:25.272 0x2054e100       j9trc_aux.1        - <OSB>4<CSB>
    java.util.zip.ZipFile.getInputStream (ZipFile.java:254)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>5<CSB>
    java.util.zip.ZipFile.getInputStream (ZipFile.java:218)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>6<CSB>
    java.util.jar.JarFile.getBytes (JarFile.java:430)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>7<CSB>
    java.util.jar.JarFile.hasClassPathAttribute (JarFile.java:552)
    (Compiled Code)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>8<CSB>
    java.util.jar.JavaUtilJarAccessImpl.jarFileHasClassPathAttribute
    (JavaUtilJarAccessImpl.java:32)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>9<CSB>
    sun.misc.URLClassPath$JarLoader.getClassPath
    (URLClassPath.java:1151)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>10<CSB>
    sun.misc.URLClassPath.getLoader (URLClassPath.java:453)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>11<CSB>
    sun.misc.URLClassPath.getResource (URLClassPath.java:292)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>12<CSB>
    java.net.URLClassLoader$ClassFinder.run
    (URLClassLoader.java:1036)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>13<CSB>
    java.security.AccessController.doPrivileged
    (AccessController.java:362)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>14<CSB>
    java.net.URLClassLoader.findClass (URLClassLoader.java:429)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>15<CSB>
    sun.misc.Launcher$ExtClassLoader.findClass (Launcher.java:281)
    17:23:25.273 0x2054e100       j9trc_aux.1        - <OSB>16<CSB>
    java.lang.ClassLoader.loadClassHelper (ClassLoader.java:699)
    17:23:25.273 0x2054e100              mt.10       <
    java/util/zip/Inflater.init(Z)J Compiled static method
    .
    The process size increased to a huge size with Inflater2 native
    memory allocation is very huge.
    

Local fix

Problem summary

  • If many jars are existed in the URLClassPath, then a JarFile
    with an Inflater is created for each of those jars to read the
    ClassPathAttribute even though many of those jars manifest does
    not have the ClassPathAttribute and not relevant. Those
    inflaters are not closed till the finalizer of the object closes
    the inflater.
    

Problem conclusion

  • The JDK has been updated to close the inflater immediately if
    ClassPathAttribute does not exist in the jar manifest.
    .
    This APAR will be fixed in the following Java Releases:
       6 R1 SR8  (6.1.8.0)
       6    SR16  (6.0.16.0)
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV50705

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-10

  • Closed date

    2014-02-16

  • Last modified date

    2014-08-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
25 August 2014