AnsweredAssumed Answered

Too many open files issue

Question asked by sanket on Feb 18, 2011
Latest reply on Feb 21, 2011 by jordiv
Hi guise,
             I am working with Alfresco3.2r2 on linux machine. I am frequently getting the following error.

Feb 18, 2011 12:30:23 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
SEVERE: Socket accept failed
java.net.SocketException: Too many open files
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
        at java.net.ServerSocket.implAccept(ServerSocket.java:453)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
        at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)
        at java.lang.Thread.run(Thread.java:619)


I don't know when and why it comes up every now and then. I restart the server temporarily to solve it. But it doesn't last
too long. Again after a few mins, it's the same.
I have tried running the following commands to increase the no. of open files (from 1024 to 4096) and stack size (from 10240 to 40960).
1) ulimit -n 4096
2) ulimit -s 40960

It does not help.
Please suggest some way.

Thanks in advance,
Sanket Mehta.

Outcomes