Forums | MacLife

You are not logged in.

#1 2008-02-27 11:29 pm

l008com
Member
From: Stoneham MA
Registered: 2000-02-10
Posts: 162
Website

"Unable To Fork" under heavy traffic

I'm running a fast G4 tower with 10.5.2 Server.
It runs apache. There are times when it's under a particularly heavy web load, and I get Unable to Fork errors when PHP is supposed to launch other programs etc. Thing is, this heavy load I'm talking about it based on traffic not CPU. The CPU rarely ever even gets to 50%. When I look at Activity Monitor, I have an absolute smurf LOAD of apache processes. Clearly I'm hitting a limit on either the total number of processors, or the total number of processors per user. SoooOOOOooo I need to know how to increase this limit, so my server can handle much greater surges of traffic. And maybe I should make a few fine-tunings to apache too? In server admin, the overall connection timeout is set to 300 seconds. Thats going to leave processes around for quite a while, no?

Offline

 

#2 2008-02-28 8:33 am

Alien
FF
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16554
Website

Re: "Unable To Fork" under heavy traffic

Look into your httpd.conf's MaxClienst, MinSpareServers and MaxSpareServers settings.

,xtG
.tsooJ

Offline

 

#3 2008-02-28 1:35 pm

l008com
Member
From: Stoneham MA
Registered: 2000-02-10
Posts: 162
Website

Re: "Unable To Fork" under heavy traffic

No no this goes well beyond that. The httpd processes are getting spawned, the problem is apache is hitting a system limit that won't let any more processes get spawned. I believe this limit is 500, and I think I had to change it in two different places to move it up to 1000 on a previous machine once.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson