In the Stratos Datacenter, our Storage server is encountering performance degradation due to excessive processes held by the nfsuser
user. To mitigate this issue, we need to enforce limitations on its maximum processes.
- Set the soft limit to
1025
. - Set the hard limit to
2025
.
- Log in to the Storage Server:
ssh your_username@storage_server_ip
- Edit the Limits Configuration File Using vi:
sudo vi /etc/security/limits.conf
- Press
i
to enter insert mode, then add:
- Add the Following Lines to the File:
nfsuser soft nproc 1025 nfsuser hard nproc 2025
- Save and Exit the vi Editor:
Press `Esc`, then type `:wq` and press `Enter` to save and exit.
- Verify the Changes:
ulimit -a -u nfsuser
- Command Explanation:
ssh your_username@storage_server_ip: Log in to the storage server. sudo vi /etc/security/limits.conf: Open the limits configuration file in vi editor. nfsuser soft nproc 1025: Set the soft process limit for nfsuser to 1025. nfsuser hard nproc 2025: Set the hard process limit for nfsuser to 2025. ulimit -a -u nfsuser: Verify the current process limits for nfsuser.