Increase the kernel SEMMNI parameter.
Example:For Linux kernel versions later than 2.4 the current values are found under /proc/sys/kernel.
To read the current values:
# cat /proc/sys/kernel/sem
Semaphores can be dynamically changed:
$ echo 500 32000 200 2048 > /proc/sys/kernel/sem
- SEMMNI is the last number in the chain (2048).
To make the change permanent add the change to the file
/etc/sysctl.conf file which is used during the boot process:
$ echo "kernel.sem=500 32000 200 2048" >> /etc/sysctl.conf