Linux - ipcs

How to clean up share memory segments?

If you frequently restart your Apache sandbox in single process mode, occassionally you may get an error "…". Here is how I clean up share memory segments:

ipcs -s | gawk '{ print $2 }' | grep -P '\d' | xargs -n 1 ipcrm -s
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License