Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 78262 invoked from network); 18 Apr 2008 04:10:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 04:10:31 -0000 Received: (qmail 56611 invoked by uid 500); 18 Apr 2008 04:10:32 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 56557 invoked by uid 500); 18 Apr 2008 04:10:32 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 56548 invoked by uid 99); 18 Apr 2008 04:10:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 21:10:32 -0700 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT 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; Fri, 18 Apr 2008 04:09:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 795B8234C0DF for ; Thu, 17 Apr 2008 21:07:21 -0700 (PDT) Message-ID: <805788692.1208491641495.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 21:07:21 -0700 (PDT) From: "Asankha C. Perera (JIRA)" To: dev@synapse.apache.org Subject: [jira] Commented: (SYNAPSE-225) Leaking resources when the connection times out. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SYNAPSE-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590280#action_12590280 ] Asankha C. Perera commented on SYNAPSE-225: ------------------------------------------- Hi Jef Sorry to reply to this a bit late.. but thanks for the very detailed analysis and your findings in helping us fix this issue. I will attend to this ASAP or this will be committed by Ruwan soon. Thanks again and we look forward to your continued help asankha > Leaking resources when the connection times out. > ------------------------------------------------ > > Key: SYNAPSE-225 > URL: https://issues.apache.org/jira/browse/SYNAPSE-225 > Project: Synapse > Issue Type: Bug > Components: Transports > Affects Versions: 1.1.1 > Environment: [root@lou-lxapachetest ~]# cat /etc/redhat-release > Red Hat Enterprise Linux Server release 5.1 (Tikanga) > [root@lou-lxapachetest ~]# uname -a > Linux lou-lxapachetest 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux > [root@lou-lxapachetest ~]# java -version > java version "1.5.0_13" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05) > Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode, sharing) > [root@lou-lxapachetest ~]# > Reporter: SteveKrall > Assignee: Asankha C. Perera > Fix For: 1.2 > > > I'm using 1.1.1-RC1. When a connection times out, I can see using lsof pipes being left open. This does not happen when the connection works normally. > Steps to reproduce: > 1. Check the open files > 2. Run the SimpleStockQuoteApplication successfully > 3. Check the open files (open files will go up on the first successful request, but not subsequent successful request > 4. Run the SimpleStockQuoteApplication this time with a -Daddurl that will generate a timeout. > 5. Check the open files. Repeat steps 4 and 5. The number will continue to grow. > My output from a test: > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ lsof -p 27788 | wc -l > 245 > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ lsof -p 27788 | grep pipe | wc -l > 24 > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080 > Buildfile: build.xml > init: > compile: > stockquote: > [java] Standard :: Stock price = $99.43283516858692 > BUILD SUCCESSFUL > Total time: 2 seconds > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ lsof -p 27788 | wc -l > 245 > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ lsof -p 27788 | grep pipe | wc -l > 24 > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ ant stockquote -Daddurl=http://:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080 > Buildfile: build.xml > init: > compile: > stockquote: > [java] 2008-01-15 16:05:40,829 [-] [main] INFO HTTPSender Unable to sendViaPost to url[http://localhost:8080] > [java] java.net.SocketTimeoutException: Read timed out > [java] at java.net.SocketInputStream.socketRead0(Native Method) > [java] at java.net.SocketInputStream.read(SocketInputStream.java:129) > [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:237) > [java] at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) > [java] at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) > [java] at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) > [java] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373) > [java] at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832) > [java] at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590) > [java] at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) > [java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) > [java] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > [java] at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) > [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) > [java] at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) > [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) > [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) > [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) > [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) > [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) > [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) > [java] at samples.userguide.StockQuoteClient.executeClient(Unknown Source) > [java] at samples.userguide.StockQuoteClient.main(Unknown Source) > [java] org.apache.axis2.AxisFault: Read timed out > [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) > [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195) > [java] at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) > [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) > [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) > [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) > [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) > [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) > [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) > [java] at samples.userguide.StockQuoteClient.executeClient(Unknown Source) > [java] at samples.userguide.StockQuoteClient.main(Unknown Source) > [java] Caused by: java.net.SocketTimeoutException: Read timed out > [java] at java.net.SocketInputStream.socketRead0(Native Method) > [java] at java.net.SocketInputStream.read(SocketInputStream.java:129) > [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:237) > [java] at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) > [java] at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) > [java] at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) > [java] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373) > [java] at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832) > [java] at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590) > [java] at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) > [java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) > [java] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > [java] at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) > [java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) > [java] ... 11 more > BUILD SUCCESSFUL > Total time: 32 seconds > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ lsof -p 27788 | wc -l > 250 > skrall@skralldesktop ~/files/downloads/synapse/synapse-1.1.1/samples/axis2Client $ lsof -p 27788 | grep pipe | wc -l > 28 -- 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: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org