LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   rebooting has no effect of ulimit (https://www.linuxquestions.org/questions/centos-111/rebooting-has-no-effect-of-ulimit-4175578219/)

mahmoodn 04-24-2016 10:23 AM

rebooting has no effect of ulimit
 
On my centos-6.1, I changed the /etc/security/limits.conf file and rebooted the system, however the number of processes didn't change!

check max user processes and nproc

Code:

# ulimit -a
core file size          (blocks, -c) 0
data seg size          (kbytes, -d) unlimited
scheduling priority            (-e) 0
file size              (blocks, -f) unlimited
pending signals                (-i) 516285
max locked memory      (kbytes, -l) unlimited
max memory size        (kbytes, -m) unlimited
open files                      (-n) 4096
pipe size            (512 bytes, -p) 8
POSIX message queues    (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time              (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


# cat /etc/security/limits.conf
*  -  memlock    -1
*  -  stack      -1
*  -  nofile      4096
*  -  nproc      2048


jailbait 04-24-2016 06:23 PM

What exactly did you change in /etc/security/limits.conf?

----------------------
Steve Stites

mahmoodn 04-25-2016 04:14 AM

As shown in the the last line, nproc is 2048


All times are GMT -5. The time now is 09:44 AM.