Code: Select all
[ WARNING ] > error during accept(): java.io.IOException: Too many open files
I see this problem has been encountered many times before, so we've followed the suggested procedure EXACTLY as it is documented here:
http://www.smartfoxserver.com/docs/docPages/config/linux.htm
Unfortunately ulimit makes no difference. We are running SmartFox as the user 'smartfox'. I'd imagine that the sfs and start.sh scripts are also being run as this user. If they're not, would this be the problem?
The client I wrote has a heartbeat. Every 30s, we ping SmartFox using roundTripBench() from ActionScript. If we're not connected, we try to reconnect instead.
Could I be DDoS'ing our SmartFox server with such code?
When we throttle our incoming connections, the server stays up and running just fine. When we re-allow all IPs to connect, it dies almost immediately.
Is there anything I could be missing? Are there any suggestions on how to debug this problem?
Any advice would be greatly appreciated, thank you.
-jimmie