[jbosscache-issues] [JBoss JIRA] Commented: (JBCACHE-1443) Async marshalling, async cache loading and async notification handling use unbounded queues
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Thu Nov 13 13:00:46 EST 2008
[ https://jira.jboss.org/jira/browse/JBCACHE-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12438373#action_12438373 ]
Brian Stansberry commented on JBCACHE-1443:
-------------------------------------------
That's a big default queue!
> Async marshalling, async cache loading and async notification handling use unbounded queues
> --------------------------------------------------------------------------------------------
>
> Key: JBCACHE-1443
> URL: https://jira.jboss.org/jira/browse/JBCACHE-1443
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.0.0.CR3
> Reporter: Brian Stansberry
> Assignee: Manik Surtani
> Priority: Critical
> Fix For: 3.0.0.GA
>
>
> The async handling in CommandAwareRpcDispatcher, AsyncCacheLoader and NotifierImpl all use Executors.newFixedThreadPool() to set up their ExecutorService. Per the method javadoc for that method it "Creates a thread pool that reuses a fixed set of threads operating off a shared unbounded queue". Use of an unbounded queue is inherently unsafe, and particularly in these use cases where there could be a very large number of threads adding tasks to the queue, while the default config only creates a single thread to take tasks off the queue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosscache-issues
mailing list