Memory usage of fresh nginx

I installed nginx (0.8.7) by rpm on Centos with php-fpm. The total
memory used was about 45K

I installed nginx (1.0.4) from source on the same conditions, but the
total memory used is about 90K

as I compared the memory usage by top, I can see the amount used by each
php-fpm process is double in the latter case. Any idea? Do I need to
adjust setting?

Posted at Nginx Forum:

Hi.

The two are unrelated, Nginx has no effect on PHP as there is a fastcgi
abstraction layer inbetween them. Recompiling Nginx does not recompile
PHP.

Posted at Nginx Forum:

They are two separate servers with fresh installation. I mean what can
be the cause of this double memory usage in the nginx setting. For some
reason, php-fpm is consuming double memory; or maybe fastcgi interface
is doing this. I’m just curious to know what setting can be the cause.

Posted at Nginx Forum:

The difference in the Nginx memory size can be due to the modules you
have compiled in or the amount and size of buffers you have allocated.

The difference in the PHP memory size can be anything from modules
compiled in/dynamically linked to what type of scripts you’re running.

One thing I can tell you with certainty is that Nginx does not affect
the memory usage of PHP.

Posted at Nginx Forum:

On Thu, Jun 16, 2011 at 08:19:09AM -0400, etrader wrote:

I installed nginx (0.8.7) by rpm on Centos with php-fpm. The total
memory used was about 45K

I installed nginx (1.0.4) from source on the same conditions, but the
total memory used is about 90K

as I compared the memory usage by top, I can see the amount used by each
php-fpm process is double in the latter case. Any idea? Do I need to
adjust setting?

Could you show top samples ?


Igor S.