1833758 Members
2544 Online
110063 Solutions
New Discussion

fork error

 
Surarchitha Kumar
New Member

fork error

Hi

We are getting the following error while forking a shell script on HP-UX 10.20 server

'Enviroment+Command line has too much stuff, cannot fork: script_name'.

Can anybody suggest me what could be the reason for this error, and the solution.

Regards
Kumar
5 REPLIES 5
Animesh Chakraborty
Honored Contributor

Re: fork error

Hi,
An attempt to use the fork() system call failed to create a new process.
If your system is busy or has lots of uucp activity, try again later. If
this error is frequently encountered, consider increasing the kernal
parameters NPROC and/or MAXUPROC.

Animesh


Did you take a backup?
Animesh Chakraborty
Honored Contributor

Re: fork error

The error: cannot fork: too many processes usually means that the
kernal parameter, maxuprc, is set too low. This parameter indicates
the maximum number of processes any one user may have running at one
time. This value commonly set to 64. Setting maxuprc to 128
(or larger) and rebuilding the kernel should fix the problem.
Did you take a backup?
Surarchitha Kumar
New Member

Re: fork error

But, the error message iam getting says something about the environment and command line arguments. Is this anyway related to the fork error(instead of max no. of processes).
Madhu Sudhan_1
Respected Contributor

Re: fork error

Kumar :
It will be like beating around the bush, till you publish the 'c' code and shell script you are fork'ing infront of forums.

...Madhu
Think Positive
Deepak Extross
Honored Contributor

Re: fork error

Can you 'echo $?' after the call to fork and let us know what it shows?