You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2008/03/19 13:05:32 UTC

[jira] Created: (SM-1280) FTP poller stalls because the connection pool is empty

FTP poller stalls because the connection pool is empty
------------------------------------------------------

                 Key: SM-1280
                 URL: https://issues.apache.org/activemq/browse/SM-1280
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-ftp
    Affects Versions: 3.2.1
            Reporter: Gert Vanthienen
         Attachments: smx-ftp-stall-on-borrow.png

While processing a lot of files (several thousands), the FTP poller stalls with all threads waiting to borrow an object from the pool.  I guess the pool has become empty somehow.  Prior to this, a few SocketTimeoutException were thrown (cfr. also SM-915).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SM-1280) FTP poller stalls because the connection pool is empty

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SM-1280.
---------------------------------

    Fix Version/s: 3.2.2
                   3.3
       Resolution: Fixed

After discussing it with Guillaume, it seems likely that the issue is caused by running out of threads in the Executor, causing the sendSync() in the FTP poller to block because an  FTP sender endpoint further down the road also needs a thread from the same pool.  As a result, all connections in the pool will get allocated to threads stuck on the sendSync().  Fundamentally, the solution would be to have the FTP poller use asynchronous messaging instead of using sendSync() (cfr. SM-1282).

For now, a workaround solution is to allow the connection pool to grow as large as the thread pool when necessary.

> FTP poller stalls because the connection pool is empty
> ------------------------------------------------------
>
>                 Key: SM-1280
>                 URL: https://issues.apache.org/activemq/browse/SM-1280
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-ftp
>    Affects Versions: 3.2.1
>            Reporter: Gert Vanthienen
>             Fix For: 3.2.2, 3.3
>
>         Attachments: smx-ftp-stall-on-borrow.png
>
>
> While processing a lot of files (several thousands), the FTP poller stalls with all threads waiting to borrow an object from the pool.  I guess the pool has become empty somehow.  Prior to this, a few SocketTimeoutException were thrown (cfr. also SM-915).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1280) FTP poller stalls because the connection pool is empty

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SM-1280:
--------------------------------

    Fix Version/s: servicemix-ftp-2008.01

> FTP poller stalls because the connection pool is empty
> ------------------------------------------------------
>
>                 Key: SM-1280
>                 URL: https://issues.apache.org/activemq/browse/SM-1280
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-ftp
>    Affects Versions: 3.2.1
>            Reporter: Gert Vanthienen
>             Fix For: 3.2.2, 3.3, servicemix-ftp-2008.01
>
>         Attachments: smx-ftp-stall-on-borrow.png
>
>
> While processing a lot of files (several thousands), the FTP poller stalls with all threads waiting to borrow an object from the pool.  I guess the pool has become empty somehow.  Prior to this, a few SocketTimeoutException were thrown (cfr. also SM-915).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.