Solved

Apache-can't spawn child process

Posted on 2000-03-28
3
1,025 Views
Last Modified: 2013-12-24
We are using Apache 1.3 and have these values set:

MaxClients 100
MaxRequestsPerChild 20

Yesterday, a user must have been leaning against the enter key and created over 200 processes causing the web server user 'nobody' to reach its max process limit and start giving the error 'can't spawn child' to new requests. What settings can I use to prevent this from occurring. Is there a setting that will just lock out the offender and not affect anyone else? I believe our AIX is set to allow 300, but read that httpd.h allows 256.
0
Comment
Question by:srollins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
triliji earned 100 total points
ID: 2707707
It sounds to me as though the server is doing it's job by not allowing any more child processes to be spawned. I am confused by the statement, "leaned against the enter key" as I don't think this would cause a server to be flooded with PUT commands. I have never heard of this problem and admit that I am unsure of this.
In any event, this would be a rare occurence and the sysadmin should be able to catch these errant mistakes or overloads and kill the processes to free up resources.

The CGI script  can also be modified to limit the number of PUT requests to handle this problem.

Hope this helps
0
 

Author Comment

by:srollins
ID: 2708867
The "leaning again the enter key" causes the form on the screen to be submitted repeatedly because a carriage-return submits the form. Someone leaning on it would continuously submit the form over and over.

You say that I should be able to catch these errant overloads and kill some processes. How do I catch these overloads and how do I know which processes to kill. I don't want to kill a legitimate process that may be writing to the database.
0
 

Expert Comment

by:triliji
ID: 2709063
What O/S are you using?
Do you presently have a program to monitor your sites
activity?

Is the form writing to a binary database or flatfile?
Killing a process can be pinpoint or shotgun
and it should not be hard to detect a runaway process.
Unless your site is receiving millions of hits you should
be able to notice an extraordinary increase in processes being
run.

You can use the kill pid for pinpoint or the
killall for shotgun but be careful not to run it
as root if you are the sysadmin or you could
cause some irreversible damage.

Is this a CGI script you are running?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question