Question : On our Storage server in Stratos Datacenter we are having some issues where nfsuser user is holding hundred of processes, which is degrading the performance of the server. Therefore, we have a requirement to limit its maximum processes. Please set its maximum process limits as below:
a. soft limit = 80
b. hard_limit = 92
Please Note:- Perform the below commands based on your question server, user name & other details that might differ as per the task.
1. At first login to one storage server & Switch to the root user
thor@jump_host
/$ ssh natasha@ststor01 The authenticity
of host 'ststor01 (172.16.238.15)' can't be established. ECDSA key
fingerprint is SHA256:goyzCLJtN5R0K2ifNzlG1NoZGKKhvwu2Ub1r1eyVYcc. ECDSA key
fingerprint is MD5:d1:90:fd:eb:71:c9:0f:71:06:1d:b5:bd:a2:b2:20:2d. Are you sure you
want to continue connecting (yes/no)? yes Warning:
Permanently added 'ststor01,172.16.238.15' (ECDSA) to the list of known
hosts. natasha@ststor01's
password: [natasha@ststor01
~]$ sudo su - We trust you
have received the usual lecture from the local System Administrator.
It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great
responsibility. [sudo] password
for natasha: [root@ststor01
~]# |
2. Edit limit.conf file as below vi /etc/security/limits.conf
(refer to you task for limits & add in the conf file)
[root@ststor01
~]# vi /etc/security/limits.conf [root@ststor01
~]# [root@ststor01
~]# cat /etc/security/limits.conf | grep nproc | grep -v ^# nfsuser soft nproc
80 nfsuser hard nproc
92 [root@ststor01
~]# |
3. Click on Finish & Confirm to complete the task successful
Happy Learning!!!!
2 Comments
Well Explained. keep posting more
ReplyDeleteThanks for your kind words. will keep more posting to learn
Delete