Saturday, December 22, 2012

How to change value of maxproc parameter?

How to change the value of maxproc parameter in Linux?

1. for changing  the value of maxproc to unlimited if it is 1024 now, as required for java and oracle processes. we can do the following.

the oracle user may or might be in sapsys group as it is in my case. we can chech the same with cat /etc/group, after confriming the same. we need to edit the file /etc/security/limits.conf. we have to write an entry lie below.

in last line u can add below lines.

@sapsys          -       nproc            unlimited
#@kinder          -       nproc            unlimited :- an example of group create named as kinder, user #created in it is as yanky/chen,
@kinder          soft    nproc          unlimited
# End of file
[root@linux1 ~]# cat /etc/security/limits.conf

after editing the file just save and logout and login again.
try to login with user falling in sapsys group, in my case yanky/chen for kinder group or sidadm user falling in sapsys group and run command


it will show the o/p as unlimited as below for yanky/chen

[root@linux1 ~]# su - chen
[chen@linux1 ~]$
[chen@linux1 ~]$ 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) 7868
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[chen@linux1 ~]$
please add or put your comments for adding or making my point cler if mistake done. will be very thank full to u.

Amit Chopra

No comments: