PHP als CGI wird zum Zombie-Prozess

Apache, Lighttpd, nginx, Cherokee
Post Reply
floeff
Posts: 4
Joined: 2004-05-28 14:56
 

PHP als CGI wird zum Zombie-Prozess

Post by floeff »

Hallo Profis ;-)

Ich habe auf einem Testsystem Apache 2.0, Linux 2.4 und PHP 4.3.6
installiert. PHP läuft hierbei als CGI-Skript, da ich suexec nutzen
möchte und mir daher mod_php verwehrt bleibt.

Jetzt habe ich das Problem, dass PHP als CGI anscheinend zu
DOS-Angriffen missbraucht werden kann. Lädt man ein PHP-Skript oft
hintereinander (z.B. zehn Sekunden hintereinander auf Reload im
Browser klicken) stirbt das System mit einem Load von über 90 (!) ab.
Die PHP-Prozesse scheinen "Amok" zu laufen und ich kann sie weder mit
dem PHP Memory Limit noch mit Apaches RLimitMEM/RLimitNPROC/RLimitCPU
eindämmen. Auch ein Wrapper, der nur 10 PHP-Instanzen zulässt oder ein Modul, das bei einem Load größer 1.00 keine CGIs mehr ausführt helfen nicht. Bei Perl-Skripts tritt das Problem nicht auf.

Hat jemand von euch eine Idee, wie ich dem beikommen kann?

Vielen Dank im Voraus!
Flo
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: PHP als CGI wird zum Zombie-Prozess

Post by oxygen »

Ich würde fast vermuten das liegt am Script, klingt irgendwie nach einem SQL DEAD LOCK.
floeff
Posts: 4
Joined: 2004-05-28 14:56
 

Re: PHP als CGI wird zum Zombie-Prozess

Post by floeff »

Hallo,

leider nein. Selbst bei einem simplen phpinfo-Skript tritt der Fehler auf. ;-(

Viele Grüße
floeff
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: PHP als CGI wird zum Zombie-Prozess

Post by Joe User »

Hosen runter: Configs+Logs zum DL bereitstellen.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Post Reply