Troubleshooting: cleaning ghosts Apache semaphores
From CPWiki
Contents |
[edit] Symptoms
Apache hangs with semget: No space left on device error message on /etc/httpd/logs/error_log
[edit] Cause
About every system semaphore is used. Apache 1.3.27 can leave them used if killed.
[edit] Resolutions
Close these semaphores.
[edit] Checking out which proccess is using Semaphores
# ipcs -s
If there is lots of lines owned by "nobody" it is apache.
[edit] Killing apache semaphores
# service httpd stop
# /usr/bin/ipcrm sem $(/usr/bin/ipcs -s | grep nobody | awk '{print$2}')
# service httpd start
[edit] External links
Based on http://forum.ev1servers.net/showthread.php?s=&postid=98151

