- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Process Fork Problem on HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 06:24 PM
11-22-2006 06:24 PM
We are using HP-UX B.11.23 ia64, 4 CPU box. I am facing the following error while trying to execute any script:
ksh: cannot fork: too many processes
On checking in "top -h", I observed that the processes count was going to a max of 4096 which comes to be 2^10 processes per processor (it seems it is the limit, plz correct me if I am wrong). Out of these around 4000 were sleeping and CPU was 97% idle.
Last time when it happened we had to restart the server. Luckily this time, the processes count automatically got reduced.
Can anyone suggest what can be done from our side?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 06:46 PM
11-22-2006 06:46 PM
Re: Process Fork Problem on HP-UX
man kctune
you need to adjust the nproc kernel parameter
e.g.
kctune nproc=8192
you may require a reboot after this (some parm changes do)
Are all 4000 odd processes in the proc table valid? or is something spawining too many procs?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 07:30 PM
11-22-2006 07:30 PM
Re: Process Fork Problem on HP-UX
KCTUNE is currently displaying:
[root]/home/scripts#kctune nproc
Tunable Value Expression Changes
nproc 4096 4096 Immed
I don't want to increase its value since normally the count is in the range of 600-700 and most of them are sleeping.
I am not able to trace what happened at that particular time which increased the processes to 4096 level.
Also, can you tell me how to check the validity of processes in the proc table.
Thanks.
Ankit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2006 03:44 PM
11-23-2006 03:44 PM
Re: Process Fork Problem on HP-UX
Can some expert help me on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2006 07:08 AM
11-26-2006 07:08 AM
SolutionIt is common for some application vendors to recommend large values for maxuprc, but not recommended until it can be shown that such a large number makes sense. A simple (but defective) script can start thousands of processes in a few seconds so maxuprc makes sense to prevent a runaway script or program from using every process table entry. In your case, having nproc=maxuprc is a very bad setting. Always set maxuprc to at least 100 less than nproc to prevent a system lockout condition where not even root can login.
To find the process counts by user:
UNIX95=1 ps -e -o ruser=|sort|uniq -c
Note that root is not restricted by maxuprc.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2006 06:17 PM
11-26-2006 06:17 PM
Re: Process Fork Problem on HP-UX
It would seem your analysis is flawed. I agree that nproc needs to be increased to solve this problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 12:37 AM
11-27-2006 12:37 AM
Re: Process Fork Problem on HP-UX
Thanks for the help.