book
Article ID: KB0090879
calendar_today
Updated On:
Description
Resolution:
1). The Default Buffer Size can only be set at the OS level. On Linux, you can use the “sysctl -a | grep net.core” command to list net.core.rmem_default and net.core.wmem_default which gives the default RCVBUF and SNDBUF buffer sizes shown by the “iniftst” output. To set those values on Linux, you can use the following commands:
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
On Windows, you can get the default buffer size by calling getReceiveBufferSize and getSendBufferSize in Java and getsockopt call in C.
2). The maximum buffer size is the one RVD actually uses and may not be the same as the OS values. In Linux, net.core.rmem_max is the max OS receive buffer size for all types of connections and net.core.wmem_max is the max OS send buffer size for all types of connections. To set those values in Linux, you can use the following commands:
sysctl -w net.core.rmem_max= 16777216
sysctl -w net.core.wmem_max= 16777216
TIBCO Rendezvous 8.x daemons set UDP send/receive buffers to a maximum of 16MByte on all OS platforms which support configurations of large send/receive buffers. When an RV daemon starts, it tries to set the UDP buffer to 16 MB. If the daemon does not succeed in setting this buffer, a divide and conquer algorithm is used to optimize the buffer size relative to what the OS is able to provide. The buffers are not configurable pro grammatically. The maximum values of 16Mbytes for RV 8.x were chosen as the best compromise between performance and latency. The values we have chosen are based on experience which has shown them to be the best trade off between overall system performance and timely delivery of data to the network.
3). Since version 8.3 the UDP buffer is configurable using the ‘-udp-buffer-size’ command line parameter when starting the daemon:
--------------
UDP Buffer Size
When present, the daemon requests a buffer of this size (in bytes) for outbound UDP multicast. Note that operating system constraints can limit this request. The value of "size" must be a non-negative integer. When absent or zero, the default buffer size is 16000000 bytes (16MB).
------------
Issue/Introduction
How to change RV Socket Default Buffer Size and Maximum Buffer Size.