Optimizing worker_processes, worker_connections & PHP_FCGI_CHILDREN - Any Good Tutorial?
Piotr Karbowski
jabberuser at gmail.com
Wed Jun 16 01:30:57 MSD 2010
On 15.06.2010 23:28, rahul286 wrote:
> Piotr Karbowski Wrote:
> -------------------------------------------------------
>> Php use ~22M of ram
>> 16.5 MiB + 5.4 MiB = 21.9 MiB php-cgi (11)
>> And nginx ~5M
>> 2.9 MiB + 1.4 MiB = 4.4 MiB nginx (7)
>> (base on ps_mem.py script).
>
> I ran ps_mem.py [http://www.pixelbeat.org/scripts/ps_mem.py]
> And found...
> 5.5 MiB + 992.5 KiB = 6.4 MiB nginx (9)
> 49.1 MiB + 60.7 MiB = 109.7 MiB php-cgi (6)
>
> I guess for PHP, shared 60.7MB contains APC cache of 60MB.
> And also total memory used by php-cgi is not 6*109.7 but 6*49.1 + 60
>
> Also my php-cgi is double in size compared to your php-cgi
> Should I think of removing php extensions in this case!
I don't know why my php use less memory than yours, I am not a php guy
but my server is powered by Funtoo Linux (Gentoo fork) and php is
compiled *only* with what I need, nothing more.
-- Piotr.
More information about the nginx
mailing list