Anton Yuzhaninov
October 30, 2012 06:16AM
On 10/29/12 21:13, peschuster wrote:
> However, I am having problems with the memory consumption of nginx:
>
> When I perform 10,000 requests with 20 conn/s and 2 requests/conn (using
> httperf - 1), memory used by nginx grows to about 40 MB.
> When I repeat this benchmark, the used memory grows from 40 to 80 MB.

1. Do you use 3rd party modules?
2. This request served by nginx (e. g. static files) or proxied to some backend?
3. Memory usage depends on used features: SSL, SSI, gzip, limt rate, geo module,
e. t. c.

If gzip is used for static files, better to pre-compress them, and use
ngx_http_gzip_static_module

Also yo save memory use 1 worker and set reasonable small limit on connections:

worker_processes 1;

events {
worker_connections 512;
}

--
Anton Yuzhaninov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Memory consumption of ningx

peschuster October 29, 2012 01:13PM

Re: Memory consumption of ningx

Anton Yuzhaninov October 30, 2012 06:16AM

Re: Memory consumption of ningx

peschuster October 30, 2012 07:13AM

Re: Memory consumption of ningx

VBart October 30, 2012 07:42AM

Re: Memory consumption of ningx

peschuster October 31, 2012 07:28AM

Re: Memory consumption of ningx

VBart October 31, 2012 10:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 96
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready