Re: PHP, Apache 2, memory and APC
| From: | Rasmus Lerdorf | Date: | Thu, 02 Feb 2006 20:43:41 +0000 |
| Subject: | Re: PHP, Apache 2, memory and APC | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21772@lists.php.net to get a copy of this message | ||
Brian Moon wrote:
Ilia Alshanetsky wrote:I still think your best bet is to simply allow for the top watermark for each of your processes and configure your machines with enough ram to handle perhaps a smaller number of processes. Or fix your code to use less if that high watermark is too high. Killing processes seems like a very crude fix here. -RasmusRather then terminating Apache request yourself, you can use universal Apache configuration directives that allow you to restrict memory utilization of an Apache process.Hmmm, the ones I looked at seemed to prohibit a process from growing above a certain size. Can you point me to them? I don't want to prohibit a process from using what it needs (to a point). I need simply need a child to terminate after it has gone above a certain threshold. We found that the norm for our applications was 10-15MB. Usage above that was the exception. Some applications (especially when they were generating cache that had gone stale) would need more for a brief period. I don't want to stop that.