IBM Support

IV51176: FILEDESCRIPTOR LEAK IN PRINTSERVICELOOKUP ON AIX PLATFORM

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: The application fail with "Too many open files"
    .
    Stack Trace: N/A
    .
    As time progress, the number of  open files  increases
    proportionally and all the file descriptors get exhausted . The
    command " lsof -T" shows many FIFO file types  & temp files in
    open state.
    java      376904   root  526r  VREG               10,7
          10   21439 /tmp (/dev/hd3)
    java      376904   root  527r  FIFO 0xf10001002dc10f70
           0
    java      376904   root  528w  FIFO 0xf10001002dc2b190
           0
    java      376904   root  529r  FIFO 0xf10001002dc2b7f0
           0
    java      376904   root  530r  VREG               10,7
          16   21440 /tmp (/dev/hd3)
    java      376904   root  531r  FIFO 0xf10001002dc2b0d0
           0
    java      376904   root  532w  FIFO 0xf10001002dc2b910
           0
    java      376904   root  533r  FIFO 0xf10001002dc2b8b0
           0
    

Local fix

  • N/A
    

Problem summary

  • The Java API PrintServiceLookup create temporary files and
    invoke Runtime.exec. The File reader opened to read the
    temporary files result in the creation of  VREG  file
    descriptors. The  InputStream, ErrorStream and OutputStream
    opened to read the output from the process of Runtime.exec
    result in the creation of  FIFO file descriptors. The streams
    were not properly closed after completing the read/write
    operation which resulted in the file descriptor leak.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR16
    6.0.1 SR8
    7.0.0 SR7
    .
    The JDK has been updated to properly close the streams after
    completing the read/write operation for PrintServiceLookup.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV51176

  • 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-22

  • Closed date

    2013-11-29

  • Last modified date

    2013-11-29

  • 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:
29 November 2013