Return-Path: Delivered-To: apmail-geronimo-servicemix-dev-archive@www.apache.org Received: (qmail 43446 invoked from network); 4 Apr 2007 07:02:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 07:02:58 -0000 Received: (qmail 59581 invoked by uid 500); 4 Apr 2007 07:03:04 -0000 Delivered-To: apmail-geronimo-servicemix-dev-archive@geronimo.apache.org Received: (qmail 59560 invoked by uid 500); 4 Apr 2007 07:03:04 -0000 Mailing-List: contact servicemix-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: servicemix-dev@geronimo.apache.org Delivered-To: mailing list servicemix-dev@geronimo.apache.org Received: (qmail 59551 invoked by uid 99); 4 Apr 2007 07:03:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 00:03:04 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 00:02:56 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 46C6A714066 for ; Wed, 4 Apr 2007 00:02:36 -0700 (PDT) Message-ID: <9145145.1175670156273.JavaMail.jira@brutus> Date: Wed, 4 Apr 2007 00:02:36 -0700 (PDT) From: "Gert Vanthienen (JIRA)" To: servicemix-dev@geronimo.apache.org Subject: [jira] Commented: (SM-915) FTP poller stalls with threads waiting on PlainSocketImpl.socketAccept() In-Reply-To: <26840875.1175584656050.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/SM-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38955 ] Gert Vanthienen commented on SM-915: ------------------------------------ ... but the original problem still isn't solved. We get an additional stacktrace when ServiceMix is stopping and the problem only appears to exist when the FTP server is IIS. {code} java.io.IOException: Fatal thread interruption during read. at org.apache.commons.net.telnet.TelnetInputStream.read(TelnetInputStream.java:344) at org.apache.commons.net.telnet.TelnetInputStream.read(TelnetInputStream.java:466) at java.io.BufferedInputStream.read1(BufferedInputStream.java:254) at java.io.BufferedInputStream.read(BufferedInputStream.java:313) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:264) at org.apache.commons.net.ftp.FTP.getReply(FTP.java:605) at org.apache.commons.net.ftp.FTPClient.completePendingCommand(FTPClient.java:1253) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2400) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2364) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141) at org.apache.servicemix.ftp.FtpPollerEndpoint.pollFileOrDirectory(FtpPollerEndpoint.java:210) at org.apache.servicemix.ftp.FtpPollerEndpoint.pollFileOrDirectory(FtpPollerEndpoint.java:202) at org.apache.servicemix.ftp.FtpPollerEndpoint.poll(FtpPollerEndpoint.java:77) at org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:155) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) {code} I've asked the commons mailing list for help on this one... > FTP poller stalls with threads waiting on PlainSocketImpl.socketAccept() > ------------------------------------------------------------------------ > > Key: SM-915 > URL: https://issues.apache.org/activemq/browse/SM-915 > Project: ServiceMix > Issue Type: Bug > Components: servicemix-ftp > Affects Versions: 3.1 > Reporter: Gert Vanthienen > Attachments: SM-915.patch > > > FTP poller threads stop working with the stack trace below, causing the FTP client pool to run out of connections > {code} > Name: pool-component.servicemix-ftp-thread-2 > State: RUNNABLE > Total blocked: 78,430 Total waited: 4,771 > Stack trace: > java.net.PlainSocketImpl.socketAccept(Native Method) > java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) > java.net.ServerSocket.implAccept(ServerSocket.java:450) > java.net.ServerSocket.accept(ServerSocket.java:421) > org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:502) > org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2390) > org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2364) > org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141) > org.apache.servicemix.ftp.FtpPollerEndpoint.pollFileOrDirectory(FtpPollerEndpoint.java:211) > org.apache.servicemix.ftp.FtpPollerEndpoint.pollFileOrDirectory(FtpPollerEndpoint.java:203) > org.apache.servicemix.ftp.FtpPollerEndpoint.poll(FtpPollerEndpoint.java:78) > org.apache.servicemix.common.endpoints.PollingEndpoint$PollSchedulerTask$1.run(PollingEndpoint.java:155) > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) > java.lang.Thread.run(Thread.java:595) > {code} > See http://www.nabble.com/FTP-poller-stalls...-tf3490690s12049.html for more information -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.