Hello ,
yesterday evning my load avg went to 200, after restarting i saw on error_log "[error] (23)Too many open files in system: accept: (client socket)".
in saterday night (for the first time) my server went down , after few restarts its finally went up , on the error_log there was agian the error with the too many open files and error "[error] (12)Cannot allocate memory: fork: Unable to fork new process".
anyone have an idea what can i do ?
thank you
allan
03-26-2002, 10:56 AM
Ouch. The error message pretty much tells you what the problem is, some program on your server is opening more files than your kernel can process, making the whole thing go BOOM!
I have seen this happen before with bulletin board scripts, especially UBB. I would check to see if any of your customers are running bulletin baord scripts, and watch those processes until you find the culprit.
zupanm
03-26-2002, 10:56 AM
try this
echo "65536" >/proc/sys/fs/file-max
echo "65536" >/proc/sys/fs/file-max
this doesnt show anything , what do i need to do with it ?
i had costumer running ubb , but i dont think its popular at all ....
i'll check for other boards as well.
returning to last topic , if it happend in the middle of the night , is there any way for the server to restart itself and to create a file making sure it wont restart more then once in 12 hours ,
and also if it can email me ?
thank you
zupanm
03-26-2002, 11:37 AM
running this command as root will increase the max files that are allowed to be open. It should fic your problem. It won't show you anything
echo "65536" >/proc/sys/fs/file-max
Shyne
03-26-2002, 07:43 PM
Increasing the number of files won't help. It will only cause the server to go even to a higher server load.
What you need to do is while the programs are spawning is to run the "top" command. If you'll see an application spawn too many times and filling the whole output then I'd try to locate the program on the system and kill it(rename it or delete it).