Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 15227 invoked from network); 10 Aug 2009 13:44:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 13:44:40 -0000 Received: (qmail 89621 invoked by uid 500); 10 Aug 2009 13:44:46 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 89526 invoked by uid 500); 10 Aug 2009 13:44:46 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 89517 invoked by uid 99); 10 Aug 2009 13:44:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 13:44:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 13:44:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 08E85234C1E6 for ; Mon, 10 Aug 2009 06:44:15 -0700 (PDT) Message-ID: <2087884725.1249911855035.JavaMail.jira@brutus> Date: Mon, 10 Aug 2009 06:44:15 -0700 (PDT) From: "Haroon (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-935) Connections are not properly released causing them to stick in the "CLOSE_WAIT" state and cause "Too many files open" In-Reply-To: <33401626.1153952833823.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741314#action_12741314 ] Haroon commented on AXIS2-935: ------------------------------ We are facing the same issue with Axis2-1.2 version when we use Axis2 as our Webservices client to make WS calls. Exception stack trace is : org.apache.axis2.AxisFault: Too many open files Caused by: org.apache.axis2.AxisFault: Too many open files Caused by: java.net.SocketException: Too many open files I saw this post on AXIS2-2931 on the patch for this fix. And it is mentioned that this patch can be seamlessly applied in axis2-1.3 and 1.4 However, since we are on Axis2-1.2 version, could you please let us know the approach for fixing this issue, with minimum changes to the list of axis2 jars? I'm doubtful, if I take the fix from and replace axis2-kernel-1.2.jar with axis2-kernel-1.3i3.jar, what other dependent jars I might need to upgrade? Any sort of help/guidelines on applying the proper fix to axis2-1.2 version is appreciated. > Connections are not properly released causing them to stick in the "CLOSE_WAIT" state and cause "Too many files open" > --------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-935 > URL: https://issues.apache.org/jira/browse/AXIS2-935 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Affects Versions: 1.0 > Environment: Weblogic 8.1.2, Solaris 8 (dont ask!) > Reporter: Jeff Peterson > Assignee: Deepal Jayasinghe > Priority: Critical > Attachments: AXIS2-935.patch > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.