1820190 Members
4063 Online
109620 Solutions
New Discussion юеВ

User process

 
SOLVED
Go to solution
peterchu
Super Advisor

User process

I have a RH linux server and create a user id for batch job processing , I found that sometimes there are many dead processes on the system , then other process can't be run , does linux limit the no. of process that the user id can run ? thx
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: User process

Do you mean dead processes or zombies?

I know of no limit on the number of processes a single user id can start. I'd like to see some ps -ef data on the processes to start.

Unix in general has a limit called nproc which is an overall number of processes allowed.

You should also look at the batch jobs being spawned for obvious shell or other programming problems causing this.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Martin P.J. Zinser
Honored Contributor
Solution

Re: User process

Hello,

yes it does ;-) Run ulimit -a with this userid and you will see the current settings. This can be configured in /etc/scurity/limits.conf .

For a longer discussion check

http://www.linux.com/howtos/Xterminals/advanced.shtml

Greetings, Martin
peterchu
Super Advisor

Re: User process

thx replies,

I tried ulimit -a, but still have qustion

is "open file = 1024 " mean only 1024 files can be open at the same time ?

is "max user processes = 7168" mean only 7168 processes can be run at the same time ? thx
Roberto Polli
Trusted Contributor

Re: User process

Hi all,
yes, it tells you the max nr of processes a user can have.
you can limit cputime too and other stuff.

Check
# info bash
and the search for ulimit using
/ulimit [enter]
and then press "n" untill you find it.

Peace, R.
Yu Wang_1
New Member

Re: User process

You can also set soft limit and hard limit. For instance,

soft nproc 32
hard nproc 64

Which generally gives users max process number limit 32 but if someone needs more they can raise the limit per session up to the hard limit (64).

Yu
Bill Thorsteinson
Honored Contributor

Re: User process

You can configure the limits in /etc/security/limits.conf.
PAM will use this to configure the limits when it validates the processes.
Red Hat may have the limits.conf in another directory.
Yong_7
Frequent Advisor

Re: User process

Hi,

surely, there is such limit there as same as other *NIX. but lift that process limit bar won't fix the problem.

see here for your choices

http://www.linuxsa.org.au/tips/zombies.html

and may need look at OS patch or your batch shell scripts too to address root cause.

Cheers !

YJ