camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (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
Date Fri, 16 Dec 2011 18:28:30 GMT

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

Claus Ibsen resolved CAMEL-4786.
--------------------------------

    Resolution: Fixed
    
> 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.1
>
>
> 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

        

Mime
View raw message