Buffer Size Considerations

Configuration variables that let you adjust internal network buffer sizes can help to improve thin client performance by increasing the amount of data that travels across the network at any one time.

The AGS_RECEIVE_BUFFER_SIZE and AGS_SEND_BUFFER_SIZE variables control the internal network buffers in the low-level socket routines. The ACUCOBOL-GT thin client and runtime call these routines to send data across the network. Every time data is sent across the network, it must be acknowledged from the other side. So increasing the size of these buffers may enhance performance, because sending more data at a time means fewer acknowledgement messages. Making these buffers larger has the most impact when a large amount of data is sent back and forth. Note that the buffer size won't change the performance characteristics in situations where data must be sent immediately.

The AGS_MAX_SEND_SIZE variable can work in tandem with the two BUFFER_SIZE variables mentioned above to help with performance. This variable works best if its value matches the BUFFER_SIZE values. For example, if AGS_MAX_SEND_SIZE is 8000 bytes and AGS_SEND_BUFFER_SIZE is 16000 bytes, the send buffer does not fill completely before the socket layer decides that data should be sent.