IBM Support

IV20357: SOCKETCHANNEL.OPEN(SOCKETADDRESS) CAUSES SOCKET LEAK ON FAILURE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: java.net.SocketException: Too many open files
    .
    Stack Trace: Exception in thread "main"
    java.net.SocketException: Too many open files
            at sun.nio.ch.Net.socket0(Native Method)
    
            at sun.nio.ch.Net.socket(Net.java:120)
    .
    

Local fix

  • N/A
    

Problem summary

  • The current  code of SocketChannel is not handling socket close
    on RuntimeExceptions like
    UnresolvedAddressException/UnsupportedAddressTypeException  in
    open  method due to which Socket Leak is observed.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR3
    .
    JVM has been properly modified to address the reported leak
    scenario
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV20357

  • 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

    2012-04-30

  • Closed date

    2012-04-30

  • Last modified date

    2012-04-30

  • 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

[{"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:
30 April 2012