These are the suggested settings for message queues on Solaris. You can set these values by changing the entries in the /etc/system file.
set msgsys:msginfo_msgmax = 65535 Maximum size of System V message.
set msgsys:msginfo_msgmnb = 65535 Maximum number of bytes that can be on any
one message queue.
set msgsys:msginfo_msgssz = 32 Specifies size of chunks system uses to
manage space for message buffers.
Obsolete since the Solaris 8 release.
set msgsys:msginfo_msgseg = 16384 Number of msginfo_msgssz segments the system
uses as a pool for available message memory.
Total memory available for messages is
msginfo_msgseg * msginfo_msgssz.
Obsolete since the Solaris 8 release.
set semsys:seminfo_semmni = 4096 Maximum number of semaphore identifiers.
set msgsys:msginfo_msgtql = 10000 The maximum number of queue entries that
can be in the system at the same time.
A low value can adversely affect
system performance, or cause the
client to freeze. IBM recommends that
you set this value to the maximum (10000),
or at least double the maximum number of
concurrent requests. Stress load your
system, and then use the ipcs -qa command
to determine the setting.