You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org> on 2011/12/17 09:59:30 UTC

[jira] [Updated] (CAMEL-4786) Add a sized scheduled thread pool to support throttler eip and other scheduled tasks, to avoid intaking more tasks than they can execute

     [ https://issues.apache.org/jira/browse/CAMEL-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-4786:
-------------------------------

    Fix Version/s:     (was: 2.9.1)
                   2.9.0
    
> Add a sized scheduled thread pool to support throttler eip and other scheduled tasks, to avoid intaking more tasks than they can execute
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4786
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4786
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>
> The ScheduledThreadPoolExecutor from the JDK has a flaw that it has an unbounded queue task, which mean you can keep scheduling tasks to it, and it will never reject the tasks.
> This could potential cause to eat up all memory if you add more tasks, than the thread pool can execute.
> We need to guard the thread pool, and reject tasks if a queue size has been reached.
> The default queue size in Camel is 1000, so the guard should use that option.
> http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira