[JBoss JIRA] Created: (NETTY-378) NioWorker - writeTaskQueue may be growing unlimited
Michal L (JIRA)
jira-events at lists.jboss.org
Sun Jan 30 03:29:39 EST 2011
NioWorker - writeTaskQueue may be growing unlimited
---------------------------------------------------
Key: NETTY-378
URL: https://issues.jboss.org/browse/NETTY-378
Project: Netty
Issue Type: Bug
Reporter: Michal L
Assignee: Trustin Lee
NioWorker - writeTaskQueue may be growing unlimited and may cause a VM out of memory error in case of a high amount of traffic.
I think that this code from NioWorker:
private final Queue<Runnable> writeTaskQueue = new LinkedTransferQueue<Runnable>();
Should better be replaced with a bounded queue.
In addition, it would be nice to add a possible rejection handler, something like:
boolean offered = writeTaskQueue.offer(channel.writeTask);
if (!offered) {
rejectedExecutionHandler.rejectedExecution(...);
}
...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the netty-dev
mailing list