Hello all,

I'm trying to port the asyncweb web server to the latest Mina version and I'm
having some problems.
Using it with Mina-0.8.2 works great, but the problem is that I'm trying to
embed the web server in an application that is already using Mina-0.9.3.
I must have messed up something in the translation because when I apply load to
the server it doesn't take long for it to die with:


 WARN [SocketAcceptor-0] 20 Apr 2006 12:17:32 - Unexpected exception.
java.io.IOException: Too many open files
        at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
        at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:162)
        at
org.apache.mina.transport.socket.nio.support.SocketAcceptorDelegate$Worker.processSessions(SocketAcceptorDelegate.java:393)
        at
org.apache.mina.transport.socket.nio.support.SocketAcceptorDelegate$Worker.run(SocketAcceptorDelegate.java:333)

Does anyone have any idea of what pattern of misuse of Mina can cause this?

The code, if anyone is interested in it,  it's here:
<http://websites.labs.sapo.pt/mina/asybcweb.zip>

Thanks in advance for any help with this issue.

Regards,
Luis Neves

Reply via email to