Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-328

FTP poller stalls with threads waiting on PlainSocketImpl.socketAccept()

    XMLWordPrintableJSON

Details

    Description

      FTP poller threads stop working with the stack trace below, causing the FTP client pool to run out of connections

      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)
      

      See http://www.nabble.com/FTP-poller-stalls...-tf3490690s12049.html for more information

      Attachments

        1. SM-915.patch
          2 kB
          Gert Vanthienen

        Activity

          People

            Unassigned Unassigned
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: