You can use shared memory communications between clients and servers on the same system. To use shared memory, TCP/IP Version 4 must be installed on the system.
commmethod sharedmem
shmport 1510
In this example, SHMPORT specifies the TCP/IP port address of a server when using shared memory. Use the SHMPORT option to specify a different TCP/IP port. The default port address is 1510. commmethod tcpip
commmethod sharedmem
You might receive the following message from the server when using shared memory:ANR9999D shmcomm.c(1598): ThreadId<39>
Error from msgget (2), errno = 28
The message means that a message queue must be created but the system limit for the maximum number of message queues (MSGMNI) would be exceeded.
To find out the maximum number of message queues (MSGMNI) on your system, issue the following command: cat /proc/sys/kernel/msgmni
To increase the MSGMNI value on your system, issue the following command: sysctl -w kernel.msgmni=n
where n is the maximum number of message queues that you want the system to allow.