IBM Support

PK14874: MEMORY LEAK CAUSED BY DELETEONEXIT CALL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Native Memory exhaustion (not java heap OutofMemory) which
    arises due to the use of the java/lang/File.deleteOnExit()
    This API registers files for deletion on exit by adding
    a structure (struct dlEntry) to a linked list. List
    will grow indefinitely if files are continually registered
    with deleteOnExit().
    

Local fix

Problem summary

  • Native Memory exhaustion (not java heap OutofMemory) which
    arises due to the use of the java/lang/File.deleteOnExit().
    

Problem conclusion

  • This API registers files for deletion on exit by adding
    a structure (struct dlEntry) to a linked list. List will
    grow indefinitely if files are continually registered
    with deleteOnExit().
    This problem  cannot be totally avoided, without breaking
    the API or radically changing it. However, the memory leak
    can be radically reduced in magnitude by amending the
    structure definition to using the convenction for variable
    length arrays in structures.
    This allows structures to take no more space than they
    actually need.
    .
    To obtain the fix:
    Install build 20060605 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK14874

  • Reported component name

    JAVA(1.3/1.4 CO

  • Reported component ID

    5648C9800

  • Reported release

    31A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2005-11-10

  • Closed date

    2006-06-05

  • Last modified date

    2006-06-05

  • 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(1.3/1.4 CO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R31A PSN

       UP

  • R31L PSN

       UP

  • R31O PSN

       UP

  • R31W PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.3.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022