How Do I Set the UDP Parameters of the Linux OS
Question
The default maximum buffer of the Linux OS is small, and I need to set the User Datagram Protocol (UDP) parameters to prevent reported alarm loss. Generally, the maximum buffer can be between 4194304 bytes (4 MB) and 33554432 bytes (32 MB).
Answer
- Stop the eSight.
- Log in to the Linux OS as the root user.
Remotely log in to the server as the ossuser.
- Use either of the following method to change the UDP parameters, for example, changing the maximum buffer to 4194304 bytes:
- Method 1: Running commands
- Open a terminal window.
- Run the following command:
sysctl -w net.core.rmem_max=4194304
- Method 2: Modifying configuration files
- Run the cd command to go to /etc.# cd /etc
/ is the root directory of the Linux OS.
- Run the following command to open the sysctl.conf file in text format:
# vi sysctl.conf
- Add the following information to the end of the file:
net.core.rmem_max=4194304
- Run the cd command to go to /etc.
- Method 1: Running commands