Increase maxuproc value

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Increase maxuproc value
# 1  
Old 01-04-2015
Increase maxuproc value

Hi Guys,

I am running RHEL6 and now my processes reach maximum limit.

How do I increase the maxuproc value?

Can I increase the value without rebooting the server?

Thanks in advance...

Please Help!!!
# 2  
Old 01-05-2015
Hello Phuti,

It would be better to know why you have reached the limit rather than just increasing it. How have you set this limit so far, or is it the default? How many processes do you have, and why do you think you have run out?

My main concern is that something has gone into a loop and is generating processes all the time, so if increasing the limit without a boot is possible, then you will just have the problem growing. The limit is there to try to protect your system from something going wrong.

Has something recently changed for this server, e.g. has it now become production and therefore it's under untested load perhaps?

I think that the value can only be set at boot time, so it might be (I'd need to check) an update to the configuration, a kernel build and a boot to bring it in. If it was Solaris then i think it's simply a file update, but again a boot to bring it in. I think that AIX has them all set to maximum anyway.


If you can elaborate a little more, then we might be able to find a better solution.



Kind regards,
Robin
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 01-05-2015
iirc, it's either /etc/security/limits.conf or a sysctl value.
This User Gave Thanks to CarloM For This Post:
# 4  
Old 01-05-2015
It is nproc in /etc/security/limits.conf or /etc/security/limits.d/*
This per-user limit is for threads (LWPs, light-weight-processes) rather than processes.
RHEL 6 ships with
Code:
 rpm -qf /etc/security/limits.d/90-nproc.conf
pam-1.1.1-20.el6.x86_64
 cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     1024
root       soft    nproc     unlimited

We set this to 9000 on our servers.

Last edited by MadeInGermany; 01-05-2015 at 02:53 PM..
This User Gave Thanks to MadeInGermany For This Post:
# 5  
Old 01-06-2015
You might want check out this thread regarding nproc in RHEL 6.3 or later.

https://bugzilla.redhat.com/show_bug.cgi?id=919793

I was scratching my head other day when java app server failed to work properly cause of this bug.
This User Gave Thanks to Peasant For This Post:
# 6  
Old 02-19-2015
Thanks guys for the replies...my application is not closing the sessions.

It will not be useful for me to increase the nproc.

We have to deal with the root cause.

Thanks a lot
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Maxuproc parameter and number of processes

Hi there, I am having a problem on an AIX server running a WebSphere MQ instance. The problem is that sometimes it seems to reach process limit, but I do not find the processes themselves. What I see: succeed to log in (as root from console os as nonpriviliged user via ssh). Trying to run... (19 Replies)
Discussion started by: trifo75
19 Replies

2. UNIX for Dummies Questions & Answers

Maxuproc and limit

// AIX 6.1 & Power 7 server I have maxuproc set to 16384. lsattr -El sys0 -a maxuproc maxuproc 16384 Maximum number of PROCESSES allowed per user True What is the maximum number of maxuproc we can go for? If I increase maxuproc to the higher number, what would be ramifications? I... (1 Reply)
Discussion started by: Daniel Gate
1 Replies

3. AIX

Maxuproc vs ulimit -u [processes(per user)]

Morning, Somebody can tell me in AIX 6.1 what is the different between the maxuproc (lsattr -El sys0 | grep max) and the for a user. Example: Oracle is limited by : #ulimit -u processes(per user) unlimited But lsattr -El sys0| grep maxuproc show me : maxuproc 16384 So... (1 Reply)
Discussion started by: bacup540
1 Replies

4. UNIX for Dummies Questions & Answers

Increase size to sd[b-c]

hi guys I am working on my vmware workstation. I have a /dev/sdb which is 5GB. I am using LVM. Now I increase /dev/sdb 2 more GB. fdisk -l shows 7 GB but pvscan still shows 5GB. how do I make my system recognize the new 7GB added and be able to add those to my physical volumen and... (1 Reply)
Discussion started by: kopper
1 Replies

5. AIX

How can I increase a PV?

Hi, I have a 10GB iSCSI LUN attached to an AIX 5.3 system. I increased the LUN to 15GB, but the system is still showing 10GB as the Total Size. How can I get the OS to see the extra space? Do I have to reboot the system? (2 Replies)
Discussion started by: bbbngowc
2 Replies

6. Programming

how to increase number like this

hi all i got a assignment but this is part of it only.. i need the logic that all.. below is the kind of output that i want to get. 1 12 123 1234 12345 2345 345 45 5 i noe i need to use for loop cos currently i am doing a short cut way which is (1 Reply)
Discussion started by: xiaojesus
1 Replies

7. HP-UX

increase fs /var

Question I am not a hp admin but aix admin. I am wondering if to increase the fs /var we really have to umount the fs so means stop the system ... just to do an extendlv ? It is what I saw on man page of extendlv and that surprise me. On aix we can dynamically increase a fs and with version... (2 Replies)
Discussion started by: touny
2 Replies

8. Solaris

how to increase fs

hi, i installed solaris 9 on my v240 server on 36gb disk. here are the ouputs of the df -h command: # df -h Filesystem size used avail capacity Mounted on /dev/dsk/c1t0d0s0 9.6G 3.4G 6.1G 36% / /proc 0K 0K 0K 0% /proc mnttab ... (6 Replies)
Discussion started by: xuc_xich_duc
6 Replies

9. UNIX for Dummies Questions & Answers

File increase

Sorry im really new here this is my second post today! My question is, im trying to write a script and i want to output to a text file but i want each text file to be different so for instance log.txt, log1.txt, log2.txt ect how would i do that? (7 Replies)
Discussion started by: chapmana
7 Replies

10. HP-UX

increase size

Hi All, one of the mount point in Hp ux server has reached 95% its a data base file and can not be deleted. so i want to know how to increase the size of mount point i am new to unix ,please help me (1 Reply)
Discussion started by: jyoti
1 Replies
Login or Register to Ask a Question