Are you a un*x user ? If so, have you increased your ulimit value to
something greater than the default value (1024) (just type ulimit in a
console, you will get the value)?

You usually can do so with "ulimit -n 2048" before launching your app,
or by tuning your configuration (defpending on your system).

On 5/5/06, Luis Neves <[EMAIL PROTECTED]> wrote:


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




--
Cordialement,
Emmanuel Lécharny

Reply via email to