Wildfire crash: "Too many open files"

About every 4-6 hours our Wildfire 3.1.1 installation is freezing up. Nothing is seen in the error logs until it is about to go down when it starts to get filled with

java.net.SocketException: Too many open files

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(Unknown Source)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at org.jivesoftware.wildfire.net.BlockingAcceptingMode.run(BlockingAcceptingMode.j ava:44)

at org.jivesoftware.wildfire.net.SocketAcceptThread.run(SocketAcceptThread.java:11 5)

2006.12.13 18:00:29 org.jivesoftware.wildfire.net.BlockingAcceptingMode.run(BlockingAcceptingMode.ja va:57) Trouble accepting connection

At this point Wildfire is still running, but we cannot connect to the admin console or login to the server. This is on Redhat with 1.5.0_08 Sun Microsystems Inc. – Java HotSpot™ Server VM. If anyone could help it would be greatly appreciated. Thanks.

Hello this kind of problem has already been described.

If I am right you have a maximum numbers of file descriptors that can be created and this limit can be seen (under Linux) with the command ulimit -n that probably returns 1024.

In fact you cannot open more than 1024 file descriptor for you user and each time you accept a connection you use a file descriptor. I am not expert enough on that but I think it is the idea.

If your user has enough rights, adjust this value by setting for example ulimit -n 32000 or 64000.

Your problems should disappear.

Have a look in the previous threads:

http://www.igniterealtime.org/forum/click.jspa?searchID=-1&messageID=135771

http://www.igniterealtime.org/forum/click.jspa?searchID=-1&messageID=134433

Or make a search in the forums. You should find additionnal information