Operating System - HP-UX
1823988 Members
4032 Online
109667 Solutions
New Discussion юеВ

Max Limit of # of Child Processes

 
Susmita_1
New Member

Max Limit of # of Child Processes

Hi,

We have Itanium Server with HP-UX 11i V3 OS. One of our listener process keeps forking as soon as it receives any request from outside world. This process was working fine on HP PA-RISC box but when we migrated it to Itanium Server with HP-UX 11i V3, it started failing after creating 30,000 child processes.

I would like to know whether there is any Kernel Parameter defined to limit the MAX # of child processes, one parent process can create ? If yes, how to read and change the value of that parameter ?

Thanks in advance.
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Max Limit of # of Child Processes

30,000 is just too many and you should rewrite your application.

You are limited by: maxuprc
Maximum number of processes for each non-root user
And of course the total: nproc
Maximum number of processes on the system

Suraj K Sankari
Honored Contributor

Re: Max Limit of # of Child Processes

Hi,


maxuprc - limits the maximum number of concurrent user processes per user
Default value is 256
Redommended value is also 256

nproc - limits the number of processes allowed to exist simultaneously

Defualt value is 4200
Allowed values is 100 - 30000

I think better you change these two values then try

Suraj
Susmita_1
New Member

Re: Max Limit of # of Child Processes

Hi Suraj,

I would like to check the values for nproc and maxuprc parameters on our server. What command do I need to use ?

Thanks for your help !
Don Morris_1
Honored Contributor

Re: Max Limit of # of Child Processes

kctune -v nproc maxuprc

Probably wouldn't hurt to also do "man nproc" and "man maxuprc" for more information and discussions on the effects of modifying these tunables (all tunables on v2 and later have man pages if they weren't explicitly removed from the system in the man5 section).