1846787 Members
4368 Online
110256 Solutions
New Discussion

"Can't Fork" On LP start

 
SOLVED
Go to solution
Noa Harel_2
Advisor

"Can't Fork" On LP start

Hi,
When starting the lp daemon I get the massage "Can't Fork. Return code:1" but the lp daemon starts and the users can print freely.
Any ideas?
Thanks.
3 REPLIES 3
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: "Can't Fork" On LP start

Hi there,

From knowledge mine document about 'HP-UX LP spooler error messages' below is the explaination (the docID : HPUXERR03)

==========================================

can't fork.
An attempt to fork so that the parent can return to free the calling process failed.

==========================================

To resolve the problem, you can increase 'maxusers' kernel parameter, since this will increase the maxuprc kernel parameter. Cause the default formula is :

maxuprc = nproc -5
nproc = 20 + (maxusers*8)

Hope this information can help you.

Best Regards,
AW


now working, next not working ... that's unix
john korterman
Honored Contributor

Re: "Can't Fork" On LP start

Hi,
could be that your system is near over-worked. If you try and execute:
# sar -v 2 20

you will see in the proc-sz columm the number of current processes and the number that is permitted. If the two figures are close to each other, cahnces are that you from time to time reach the limit for allowable number of processes. If the proc number is very low compared to sz it could be that you have reached another limit, namely the number of max processes for one user, maxuprc. Is that the case?

regards,
John K.

it would be nice if you always got a second chance
Noa Harel_2
Advisor

Re: "Can't Fork" On LP start

The problem is two many proc's as you both stated.
I don't want to increase the No. of proc's because the system is way up to it's limit as it is.

I'll reset the system by the end of the day.
Thank you!
Noa.