Solved

Linux, maximum number of users allowed for a user

Posted on 2012-04-03
2
379 Views
Last Modified: 2012-04-03
I am getting an error message suggesting that the maximum number of processes available for a user has been exceeded

I am running RHEL 6.2  (This does not happen in RHEL 5.x under similar circumstances)

What is the command to increase the maximum number of processes allowed for a user ?
0
Comment
Question by:Los Angeles1
2 Comments
 
LVL 4

Expert Comment

by:ErwindeVries
ID: 37801284
Hi Greensburo.

If you need to increase the limits, you will need to modify the /usr/src/linux/include/tasks.h file. The parameters to change are NR_TASKS and MAX_TASKS_PER_USER.

Greetz

Erwin de Vries
0
 
LVL 11

Accepted Solution

by:
jgiordano earned 500 total points
ID: 37801309
For Redhat you will need to add the user to the limits.conf file and set the number of procs. You can see the number of procs for the user by issuing a ulimit -n as that user.


Here is an example increasing the oracle user; once completed log out and back in and execute the ulimit -n
To make the above changes permanent, you could also set the soft limit equal to the hard limit in /etc/security/limits.conf which I prefer:
oracle           soft    nproc          16384
oracle           hard    nproc          16384
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question