- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/profile[83]: cannot fork: too many processes
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
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
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
тАО03-23-2004 08:14 AM
тАО03-23-2004 08:14 AM
syslog.log does not indicate any forking problems. Notice the error coming from the user ( c1rfern2 ) profile which is nfs mounted:
${HOME:-.}/.profile[4]: /home/c1rfern2/hras/psconfig.sh: not found
*********
$ bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg02/applogs 8916992 5125120 3673378 58% /applogs
psh-cel-04:/cpprodsh_t
17573248 10150888 7422360 58% /cpprodsh
psh-cel-02:/local/hp/11i
8786112 3131240 5654872 36% /usr/local
psh-cel-02:/users1/ais/aordonez
26357312 17035632 9321680 65% /home/aordonez
psh-cel-02:/users1/ais/c1rfern2
26357312 17035632 9321680 65% /home/c1rfern2
********
Could this forking error actually be coming from the nfs mounted system ( psh-cel-02:/users1/ais/c1rfern2) ?
This is a command ( au2cptest ) entered that
switches the user ( c1rfern2 ) to the id (cptest), which delivers the "cannot fork"
error :
$ au2cptest
/etc/profile[31]: cannot fork: too many processes
/etc/profile[48]: cannot fork: too many processes
/etc/profile[83]: cannot fork: too many processes
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 08:17 AM
тАО03-23-2004 08:17 AM
SolutionYou've overflowed one of two kernel parameters
1) NPROC
2) maxuprc
The former is system wide, the latter is user specific. Check syslog.log for clues.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 08:24 AM
тАО03-23-2004 08:24 AM
Re: /etc/profile[83]: cannot fork: too many processes
This will increase nproc and other parmeters that can cause this problem.
This process can be done by sam and requires a boot.
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
тАО03-23-2004 08:26 AM
тАО03-23-2004 08:26 AM
Re: /etc/profile[83]: cannot fork: too many processes
After rereading your post, I'd lean towards maxuprc. So run the following commands:
kmtune -q maxuprc # This tells you the max procs per user
Then
ps -fu c1rfern2 | wc -l # Approx procs in use by c1rfern2
Then
ps -fu cptest | wc -l #Approc procs in use by cptest
IF either of those 2nd/3rd commands are near the 1st - that's the problem.
If neither is then run:
kmtune -q nproc #Max system-wide processes
ps -ef | wc -l #Approx total processes in use.
IF that one's close then NPROC needs to be bumped up.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 08:27 AM
тАО03-23-2004 08:27 AM
Re: /etc/profile[83]: cannot fork: too many processes
no forking messages are there? That's why I wondered if it could be from the NFS mounted system ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 08:33 AM
тАО03-23-2004 08:33 AM
Re: /etc/profile[83]: cannot fork: too many processes
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 08:36 AM
тАО03-23-2004 08:36 AM
Re: /etc/profile[83]: cannot fork: too many processes
The bad news is that fork() is one of the few system calls that sets errno to the same value (EAGAIN=11) for two separate reasons: 1) the system-wide process table limit (nproc) and 2) the user process limit (maxupc).
Because you are only seeing this error in limited circumstances, I would strongly suspect it's maxuprc biting you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 08:55 AM
тАО03-23-2004 08:55 AM
Re: /etc/profile[83]: cannot fork: too many processes
If you can figure out which process it is, you can clobber it with kill -9. Otherwise, you'll have to reboot the system (pretend its a M$ system--it'll make you feel better).
If this happens often, you might have to play with the maxuproc and nproc parameters, as other have suggested. But the cannot fork message is usually indicative of a system in serious trouble. Most likely this is because someone wrote some really bad code.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2004 02:31 PM
тАО03-23-2004 02:31 PM
Re: /etc/profile[83]: cannot fork: too many processes
ps -fu c1rfern2
you'll see how many processes this user is running at the same time. maxuprc limits runaway or buggy processes. Now if this user (c1rfern2) really needs to run more than 60 processes (different login sessions don't matter) then bump maxuprc to 100 or more.
Bill Hassell, sysadmin