How to keep HPUX process table from filling up?

I have an HP machine where the process table is filling up about every week.  We have to reboot it to get it back online.  The symptom is that when users try to log in, they'll get a message like "telnetd: fork() failed, process table full."

The machine is basically for users to telnet in, start a datakit session (through a multiplexer card), and do their business.

So how do you find out why the process table is full, and what do you do about it?
marimbaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
seedyConnect With a Mentor Commented:
Alternatively, you may try and increase the number of process.  This can easily be done through sam by changing the parameter and  rebuilding the kernel(Sam / Kernel Configuration / Configrable parameters).  You may change MAXUSERS - maximum users, MAXUPRC - max. processes per user, etc.
0
 
ahoffmannCommented:
did someone have an exec call in her/his .profile, .cshrc, .bashrc etc.
0
 
seedyCommented:
When this happens, login onto the console as root and then find the list of processes running.  you can also do this before the system reaches the saturation(about 4 days after reboot, may be). Do you see a lot of <defunct> processes?  who owns them?  What are they?

Sometimes when you telnet from PC's, and when the PCs crash, the processes are not removed, they stay as <defunct>.

Alternatively, you may try and increase the number of process.  This can easily be done through sam by changing the parameter and rebuilding the kernel(Sam / Kernel Configuration / Configrable parameters).  You may change MAXUSERS - maximum users, MAXUPRC - max. processes per user, etc.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
arthurdCommented:
Try increasing the number of Max Users and Max Processes in SAM.  I think the names of these are:

max uproc
max users

Hope this helps,

Dave
0
 
elfieCommented:
If lots of people connat from a pc, ask them to logoff before switching off their pc. If they dont logoff, some processes wont disappear.

If this is the case, increasing some kernel parameters will onmy temporarily solved teh problem (ie reboot after 2 weeks iso 1week)

Another thing to consider is, if you see some shells with parent id 1, that have no son processes running, you can kill these. Normally these are sessions from users who switched off their pc.
So you can limit the number of running processes
0
 
olvoCommented:
Have you tried to log out inactive telnets?
0
 
marimbaAuthor Commented:
I wanted to award the points for arthurd but I don't see the option anymore (been a few months since I used this).  Other suggestions were good but what did it was to increase the value of MAXUSERS (which of course increased the critical value NPROCS).  We were just running out of process space.  

Good job arthurd.
0
 
marimbaAuthor Commented:
I can't find the option to grade the answer or award the points to arthurd.  email marimba@atlcom.net if you want to tell me how to do it.
0
 
seedyCommented:
> I wanted to award the points for arthurd
Why?  Was it not I who first mentioned to increase the MAXUSERS(see my comment before arthurd).

No one has answered this question yet.  So you cannot yet award the points.  Invite that expert whose comment you found useful to post the comment as answer.  Once he does that, you can evaluate the answer and award the points.
0
 
marimbaAuthor Commented:
Looking back through the comments I see that it is indeed seedy who first mentioned increasing the values of MAXUSERS and NPROC.
If you enter the answer I will grade it and assign the points.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.