PDA

View Full Version : 503 Errors



kung foo man
10th November 2012, 19:28
Hey, some people may have noticed, that the lighttpd-server gave some 503-service-not-available errors.

The reason was that the other web-server (apache2) had to many files open. So after an apache2-restart its working again.

First I've tried to restart the lighttpd-process: but it didnt even wanted to start again, because apache2 took all left file-handles.

To see the number of file-handles for each process, do:


lsof -n|grep -oE '^[a-z]+'|sort|uniq -c|sort -n

I hope it wont say 503 again... at least im watching apache2-file-handles now. It should have a reason, why apache2 doesnt release the file-handles, but i dont know it atm.