20110531

Semaphores exhausted: OS support please check: 0 semaphores available.

//Solaris 10:

# expr `ipcs -s | wc -l` - 3
you will get the current number of semaphores ids

# prctl -n project.max-sem-ids $$
the maximum limit is the privileged value

Temporarily increase the value to double
# prctl -n project.max-sem-ids -v 256 -r -i project default


//Solaris 9:
The default semmni value (max sem ids) is 10. Set the new value in the /etc/system and reboot is compulsory.

# expr `ipcs -s|wc -l` - 3
you will get the current number of semaphores ids

No comments:

Post a Comment