To see all your shared memory settings, execute:
ipcs -lm
To check your maximum memory shared segment, run:
cat /proc/sys/kernel/shmmax
Mine showed up as ’33554432′ which is 32MB. That’s pretty small especially if eAccelerator is installed on your webserver. So I changed it to 1GB which is ’1073741824′.
To change SHMMAX without needing to reboot (yay) execute:
echo 1073741824 > /proc/sys/kernel/shmmax
Or you can use…
sysctl -w kernel.shmmax=1073741824
To make the change permanent execute:
echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf
Pat yourself after.
