Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 83037 invoked from network); 10 Oct 2008 16:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2008 16:33:04 -0000 Received: (qmail 68334 invoked by uid 500); 10 Oct 2008 16:32:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 68306 invoked by uid 500); 10 Oct 2008 16:32:55 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 68295 invoked by uid 99); 10 Oct 2008 16:32:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 09:32:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pzfreo@gmail.com designates 209.85.134.184 as permitted sender) Received: from [209.85.134.184] (HELO mu-out-0910.google.com) (209.85.134.184) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 16:31:49 +0000 Received: by mu-out-0910.google.com with SMTP id w8so522471mue.8 for ; Fri, 10 Oct 2008 09:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tKAf92V6OvuabjxsUeH8sYlLYRT/+lZSYomSgDX8TME=; b=e9C5DC2y7TA6IzF4rWHQj1fJkP4Llbo8hafCafxMfQyBe8wWGIK8flAg2sl3kjPPYD kEV2WJT9Jlople11cSg8r9sUJSvi9Bqi5SQwJzMecAPERZHsLwjkuV7Sp7iS69aoxWAy Xc8oIj6Zr4cVteG1J1jmWM0+zy8bdv2dnPwwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vYFUIW2Hm/F9/x31AWRubnop7Q5gCkRiz6+mie/lbO8SccIKlfGQdXzfU0Ems/22ql lWL8IJfOO3iBaAYJvcBYVVvuMBkccRuf5tNI5U6OD4h1VrJE0U/6gAhwhnsrLrN8PKAr yoNqAmn8CkX+ET7d0B64Ht/5OGwM/7mBEZ8Gc= Received: by 10.181.139.10 with SMTP id r10mr1741697bkn.11.1223652134877; Fri, 10 Oct 2008 08:22:14 -0700 (PDT) Received: by 10.180.224.2 with HTTP; Fri, 10 Oct 2008 08:22:14 -0700 (PDT) Message-ID: <88f5d710810100822r7a9e140bo45f83e9a84fbebde@mail.gmail.com> Date: Fri, 10 Oct 2008 16:22:14 +0100 From: "Paul Fremantle" To: axis-user@ws.apache.org Subject: Re: FW: Problems with Axis Http Connection Manager not closing connections Cc: "Spackman, Rosie (GE Money, consultant)" , "Satyendra Singh" , "Rajendra Kumar Miryala" In-Reply-To: <62134E91898A054D9055E0267F1461A703802384@LONMLVEM05.e2k.ad.ge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <62134E91898A054D9055E0267F1461A703802384@LONMLVEM05.e2k.ad.ge.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Natraj, Have you tried Axis2 1.4.1? Paul On Fri, Oct 10, 2008 at 4:06 PM, Gudla, Natraj (GE Money, consultant) wrote: > Hi All, > Earlier i have emailed to the axis-dev list but did not see a reply back. > Can you please suggest any options you may have for the underlying problem > that i quoted. > > Thanks > Natraj. > > ________________________________ > From: Gudla, Natraj (GE Money, consultant) > Sent: 08 October 2008 15:12 > To: 'axis-dev@ws.apache.org' > Cc: Spackman, Rosie (GE Money, consultant) > Subject: Problems with Axis Http Connection Manager not closing connections > > Hi All, > > We are using Axis2 1.3 version and seems to be facing problems with the > management of the http connectins via the Http connection manager. Within > our application we have a stub call which ends up calling a webservice > deployed as part of the same application. Basically it is a localhost > webservice call, which is routed back into the server. We are running our > production kit on Red Hat Linux 64 bit and on Sun App Server 9.1 > > While performing load tests which involve a webservice call for every > virtual user(repeatedley with a think time of one minute), the server seems > to be struggling with open connections having an impact on any new > connections being acquired by the code. We can see atleast 150+ CLOSE_WAIT > state connections on the server after the tests are stopped which suggests > the program is unable to close them gracefully while the OS is waiting for > them to be closed. > > We are using the following settings, Please advice if any suggestions you > may have to improve this situation. > > Following code is set-up only once on the first call : > > HttpConnectionManagerParams connectionManagerParams = new > > HttpConnectionManagerParams(); > > connectionManagerParams.setTcpNoDelay(true); > > connectionManagerParams.setStaleCheckingEnabled(true); > > connectionManagerParams.setDefaultMaxConnectionsPerHost(numOfConnections); > > connectionManagerParams.setSoTimeout(60000); > > connectionManagerParams.setConnectionTimeout(60000); > > conmgr = new MultiThreadedHttpConnectionManager(); > > conmgr.setParams(connectionManagerParams); > > client = new HttpClient(conmgr); > > > > For every user call for a webservice, following stub code is used : > Following code uses the client which was instantiated above. > > stub=new ApplicationStub(SystemParameters.configurationContext,url); > > stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(timeout); > > //Set HTTP Protocol Version > > stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.HTTP_PROTOCOL_VERSION,org.apache.axis2.transport.http.HTTPConstants.HEADER_PROTOCOL_11); > > stub._getServiceClient().getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT, > Boolean.TRUE); > > stub._getServiceClient().getOptions().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, > SystemParameters.client); > > ConfigurationContext configContext = new > ConfigurationContext(stub._getServiceClient().getAxisConfiguration()); > > configContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, > SystemParameters.client); > > Thanks > Natraj. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org paul@wso2.com "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org