Guspaz wrote:
That seems excessive, and Apache with mod_php is probably going to use more than 25MB of RAM a pop, no?
Most scripts get by just fine with a memory_limit of 32MB, and in fact average much less than that, unless your CMS is loaded with a bunch of bloated plugins. In my opinion, an average figure of 25MB is a good enough approximation for any bread-and-butter PHP app that doesn't handle large images.
Also, a significant percentage of your Apache processes will be serving static files at any given time. Even with mpm_prefork, serving a static file doesn't use much RAM. It'll show up as ~13MB because of the PHP engine, but almost all of that is shared. So you'll still have some RAM left for MySQL, buffers, and cache.
Anyway, I said "
no more than RAM / 25MB". You are unlikely to OOM under normal conditions if you stick to this formula, but the ideal value could be somewhat lower.