Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-935

Connections are not properly released causing them to stick in the "CLOSE_WAIT" state and cause "Too many files open"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0
    • None
    • kernel
    • None
    • Weblogic 8.1.2, Solaris 8 (dont ask!)

    Description

      It appears that org.apache.axis2.transport.http.SOAPOverHTTPSender does not properly cleanup the http post connection after payload has been sent.

      The symptoms of this problem show up in `netstat` as literally hundreds of connections in the "CLOSE_WAIT" state. On a busy server this can cause the application to report exceptions with the message "Too many open files."

      I looked in the source code for axis2 1.0 and discovered that in SOAPOverHTTPSender.java the releaseConnection() is never called on the postMethod variable. This seems to be a likely candidate for the source of the issue.

      See SOAPOverHTTPSender.java:97-118

      Attachments

        1. AXIS2-935.patch
          7 kB
          Jeff Peterson

        Issue Links

          Activity

            People

              deepal Deepal Jayasinghe
              jpeterson Jeff Peterson
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: