You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Simon So (JIRA)" <ji...@apache.org> on 2007/02/23 02:32:06 UTC
[jira] Commented: (AXIS2-935) Connections are not properly released
causing them to stick in the "CLOSE_WAIT" state and cause "Too many files
open"
[ https://issues.apache.org/jira/browse/AXIS2-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475234 ]
Simon So commented on AXIS2-935:
--------------------------------
While the patch didn't get in, if I:
1. set REUSE_HTTP_CLIENT == Boolean.TRUE
2. call operationclient.complete()
Then the CLOSE_WAIT issue will go away.
Listing the file descriptor which is in CLOSE_WAIT,
lsof | grep CLOSE_WAIT | wc -l
The number of CLOSE_WAITs hardly went up to 3. Mostly 0.
Before using 1 & 2 together, my program will run out of descriptors eventually.
Sorry I don't have a unit test to prove. It works for my environment.
> 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
> Assigned To: 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org