[Speedycgi-users] limiting memory usage for PHP as CGI
Brought to you by:
samh
|
From: Florian E. <fl...@ar...> - 2004-04-20 19:57:54
|
Hello PHP users, I have PHP running as CGI with Apache 2.0.49 on Linux 2.4.26 here, and with a huge PHP file involving some diagram creation, I can "kill" the machine if I re-load the script for five seconds continuously. It soaks up all my memory and runs for nearly a minute multiple times. I've tried to limit that via php.ini's memory limit setting and via Apache's RLimitCPU/RLimitNPROC/RLimitMEM directive, but it does not seem to work. Do you have any idea of what can be done in order to protect myself from such an "attack"? Thanks! Florian |