php-cgi memory usage higher than php's memory limit
- by Josh Nankin
I'm running apache with a worker MPM and php with fastcgi.
the following are my mpm limits:
StartServers 5
MinSpareThreads 5
MaxSpareThreads 10
ThreadLimit 64
ThreadsPerChild 10
MaxClients 10
MaxRequestsPerChild 2000
I've also setup my php-cgi with the following:
PHP_FCGI_CHILDREN=5
PHP_FCGI_MAX_REQUESTS=500
I'm noticing that my average php-cgi process is using around 200+mb of RAM, even as soon as they are started. However, my php memory_limit is only 128M.
How is this possible, and what can I do to lower the php-cgi memory consumption?