php-cgi memory usage higher than php's memory limit
Posted
by
Josh Nankin
on Server Fault
See other posts from Server Fault
or by Josh Nankin
Published on 2010-12-23T22:48:37Z
Indexed on
2010/12/23
22:55 UTC
Read the original article
Hit count: 813
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?
© Server Fault or respective owner