Optimizing worker_processes, worker_connections & PHP_FCGI_CHILDREN - Any Good Tutorial?

rahul286 nginx-forum at nginx.us
Wed Jun 16 01:28:05 MSD 2010


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!

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,98498,98666#msg-98666




More information about the nginx mailing list