How Do I View and Change the Number of Operating System Handles
Question
How do I view and change the number of operating system handles?
Answer
For eSight to run properly, ensure that the number of operating system handles is no less than 65,535. If the operating system is prepared by the customer, perform the following steps to check the number of operating system handles.
In an HA system, the operations should be performed on both the active and standby servers.
- Log in to the eSight server as the ossuser user.
- Run the following command to switch to the root user:
su - root
- Run the following command to view the number of operating system handles:
# ulimit -n
If the number of handles is less than 65,535, go to 4.
- Run the following commands to add configuration:
# sed -i '/^[^#].*[[:space:]]\+nofile[[:space:]]\+/d' /etc/security/limits.conf
# sed -i '$a\* - nofile 65535' /etc/security/limits.conf
- Run the following command to check whether the sed command is successfully run:
# cat /etc/security/limits.conf
- Restart the eSight server.
# reboot