cancel
Showing results for 
Search instead for 
Did you mean: 

Too many files open

kurt2439
Champ in-the-making
Champ in-the-making
Occasionally Alfresco "crashes" (it responds but when logging in to share you will usually get a java runtime error) and the catalina.out file displays the following error many times. Is this a memory related issue in the tomcat server or something operating system specific? Anyone know? A restart of the tomcat server fixes it.

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:384)
        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)
3 REPLIES 3

cheffilet
Champ in-the-making
Champ in-the-making
Lucene-Exception due to the restriction of open files in the file-system. You should raise up your current limit via:
ulimit -n 65536

kurt2439
Champ in-the-making
Champ in-the-making
thanks for the quick reply. I will try that. It is currently set to 1024. I wonder if such a huge increase is necessary or potentially disadvantageous?

cheffilet
Champ in-the-making
Champ in-the-making
It depends in many circumstances on your configuration regarding the file-handles that can be taken from Lucene in the same time. I dont know those parameters straight from my head but these should influencing the ulimit value.

Good Luck