Increasing Semaphores on Oracle Solaris 10 or 11

To increase semaphores on Solaris 10 or Solaris 11:

Note: This procedure is only applicable to Oracle Solaris on SPARC platforms.
  1. On the Enterprise Server that is running Solaris, log in as root.

  2. Issue this command:

    projmod -K 'process.max-sem-nsems=(privileged,2048,deny)' default

    This command changes the default project to allow semaphore arrays with up to 2048 elements. For further information, see the Solaris documentation System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.