Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 27719 invoked from network); 1 Dec 2009 04:18:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 04:18:47 -0000 Received: (qmail 39887 invoked by uid 500); 1 Dec 2009 04:18:46 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 39593 invoked by uid 500); 1 Dec 2009 04:18:44 -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 39580 invoked by uid 99); 1 Dec 2009 04:18:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 04:18:43 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 01 Dec 2009 04:18:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DC954234C4B3 for ; Mon, 30 Nov 2009 20:18:20 -0800 (PST) Message-ID: <2024358865.1259641100902.JavaMail.jira@brutus> Date: Tue, 1 Dec 2009 04:18:20 +0000 (UTC) From: "Glen Daniels (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-2883) CLOSE_WAIT slowly building up over the period of time. In-Reply-To: <9861308.1183240384447.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-2883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784044#action_12784044 ] Glen Daniels commented on AXIS2-2883: ------------------------------------- Hi Brecht: I did not actually test this with https, so it is technically possible there's still an issue there... I won't likely be able to set up a harness to test with for a few days. Let us know if you see further symptoms. --Glen > CLOSE_WAIT slowly building up over the period of time. > ------------------------------------------------------ > > Key: AXIS2-2883 > URL: https://issues.apache.org/jira/browse/AXIS2-2883 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: client-api > Affects Versions: 1.1 > Environment: Operating System : Solaris > Axis2 Version : 1.1 > Application Server : weblogic 8.1 SP6 > Using with Cocoon and weblogic DSP > Reporter: Lakshmanan Venkatachalam > Assignee: Glen Daniels > Priority: Critical > Fix For: 1.5.1 > > > I am experiencing theconstant increase in close wait in the production environment over the period 7 days. > We are using Synchronous webservices and we are calling two webservices 24 times every day. We have allocated the maximum of 1.5 GB per application instance and we have two application instances. We are utilizing maximum of 250 - 300 MB in average. So Full GC never runs in our environment. > It seems like the client API ServiceClient.java is not cleaning up the resources associated with this component. We are creating the new ServiceClient component on every call we have for webservices. Though we have called the cleanup() method at the end of every call to the webservices. At times its not getting executed. > But when we force garabage collection from the application, it was able to clear all the CLOSE_WAIT components. Since we have similar cleanup() call on finalize() method, it is able to do proper clean up when GC is collecting these objects. > Forcing GC cannot be a solution, I like to hear from axis2 experts on how we can resolve this problem properly and what could be the cause for this happening. > Below is our client code for your reference. > private WebServiceResponse invokeWebservice(OMElement inputElement, > Options options) throws WebServiceInvokerException { > ServiceClient serviceClient = null; > try { > serviceClient = new ServiceClient(); > serviceClient.setOptions(options); > // This following line of code is used when we are using > // WS-Addressing. User has to make sure the addressing MAR file in > // class path before enable the following line of code > // > // serviceClient.engageModule(new QName( > // org.apache.axis2.Constants.MODULE_ADDRESSING)); > // Invoking synchrounous webservice > // > OMElement result = serviceClient.sendReceive(inputElement); > > OMNode firstOMChild = result.getFirstOMChild(); > // Conver the OMelements to XML String > // > Writer stringWriter = new StringWriter(); > firstOMChild.serialize(stringWriter); > serviceClient.cleanup(); > stringWriter.flush(); > // Return the Axis2WebserviceResponse > // > return new Axis2WebServiceResponse(stringWriter.toString()); > } catch (AxisFault afe) { > throw new WebServiceInvokerException(afe); > } catch (XMLStreamException xse) { > throw new WebServiceInvokerException(xse); > } catch (IOException ioe) { > throw new WebServiceInvokerException(ioe); > } finally { > try { > serviceClient.cleanup(); > serviceClient=null; > } catch (AxisFault axisFault) { > // > } > } > } > } > options are: > Options options = new Options(); > options.setTo(targetEPR); > options.setUseSeparateListener(false); > options.setAction(wsRequest.getAction()); > options.setTimeOutInMilliSeconds(600000); > options.setTransportInProtocol("http"); > options.setProperty(org.apache.axis2.context.MessageContextConstants.CHUNKED, org.apache.axis2.transport.http.HTTPConstants.HEADER_TRANSFER_ENCODING); > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.