Too many open files error with Netty
Albert Strasheim
fullung at gmail.com
Tue Oct 27 04:42:45 EDT 2009
Hello Trustin
2009/10/27 Trustin Lee (이희승) <trustin at gmail.com>:
> I've just checked in the fix. The number of open files will not
> exceed (the number of open channels) + 128 * (the number of active
> ChannelFactories).
I just tested with revision 1842 from Netty SVN, but there still seems
to be a problem.
After about 78000 connections on our Solaris box, I got the following:
Oct 27, 2009 10:39:12 AM org.jboss.netty.channel.socket.nio.NioWorker
WARNING: Unexpected exception in the selector loop.
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:848)
at java.util.HashMap$KeyIterator.next(HashMap.java:883)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:269)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Watching the heap in Visual VM also seems to indicate that it keeps growing.
Regards,
Albert
P.S. Code attached again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TooManyFiles.java
Type: application/octet-stream
Size: 5390 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20091027/aee907a6/attachment-0001.obj
More information about the netty-users
mailing list