cancel
Showing results for 
Search instead for 
Did you mean: 

Too many open files issue

sanket
Champ on-the-rise
Champ on-the-rise
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.
1 REPLY 1

jordiv
Champ on-the-rise
Champ on-the-rise
I had your same problem using Alfresco 3.4 and following the steps described in the Too many open files wiki page I could solve it.
It's wierd that increasing the number of open files doesn't work for you  Smiley Indifferent

Cheers,
Jordi.