Solved

Linux, maximum number of users allowed for a user

Posted on 2012-04-03
2
377 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now