# for i in `ipcs | tail -80 |head -75 |cut -d ‘ ‘ -f2`; do ipcrm sem $i; done
ipcrm removes System V interprocess communication (IPC) objects and associated data structures from the system.’ as per the man pages.
# for i in `ipcs | tail -80 |head -75 |cut -d ‘ ‘ -f2`; do ipcrm sem $i; done
ipcrm removes System V interprocess communication (IPC) objects and associated data structures from the system.’ as per the man pages.
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
and increase the value
# echo “32000 32000 512 512″ > /proc/sys/kernel/sem
This happens on most of the server which has high apache actvity.