Tuesday, May 6, 2008

Apache down!! Semget: No space left on device here.

Use this command if you get the error “Semget: No space left on device here” in apache error log. Make sure that you are replacing nobody with corresponding apache user.

‘’ipcrm sem `ipcs|grep nobody|awk ‘{print $2}’`'’

or

‘’ipcrm sem `ipcs|grep apache|awk ‘{print $2}’`'’

or

View the sem value using the below command

ipcs -ls

or

cat /proc/sys/kernel/sem

increase the value

echo “32000 32000 512 512″ > /proc/sys/kernel/sem

This happens on most of the server which has high apache actvity.

-------------------------------
for i in `ipcs -s | grep nobody | awk '{print $2}'`; do ipcrm -s $i; done



No comments: