Why nginx took so many memory? Is it right?

My server: 8 core CPU , 2G memory , CentOS 5.3 64bit

nginx take 40M memory per thread, is it right?

I see other guys only 11M memory per-thread

and the php-cgi also take 40M memory per thread

I see other guys only 8M memory per-thread

could you tell me how to fix it?

thank you very much.

please see the pic
http://www.21andy.com/temp/nginx_memory.gif

Posted at Nginx Forum:

mine was 73 MB virt, 3 MB res (x1 child), my cgi process: 747 MB virt,
99 MB res (x2 child)

On Fri, Feb 5, 2010 at 3:34 PM, 21andy [email protected] wrote:

could you tell me how to fix it?
nginx mailing list
[email protected]
nginx Info Page


Regards,
Kiswono P
GB

Here is mine

Imgur

1 box: 8-core, 4GB RAM, RAID 1
CentOS 5.4 32 bit
PHP 5.3
About 15 millions PHP requests per day

What I have done

  • Custom build - Static linked
  • Remove unneeded PHP extensions

21andy wrote:

My server: 8 core CPU , 2G memory , CentOS 5.3 64bit

nginx take 40M memory per thread, is it right?

I see other guys only 11M memory per-thread

and the php-cgi also take 40M memory per thread

I see other guys only 8M memory per-thread

could you tell me how to fix it?

thank you very much.

please see the pic
http://www.21andy.com/temp/nginx_memory.gif

Posted at Nginx Forum:
Why nginx took so many memory? Is it right?