Welcome! Log In Create A New Profile

Advanced

Re: nginx keep using more and more memory

January 18, 2012 04:28AM
nginx use memory pool for each http request.
If the request is never-ending, more and more memory will be allocated.

2012/1/18 <nginxlist@serverphorums.com>:
> Hi,
>
> We are using nginx to proxy to 4 back end servers. And we terminate SSL at nginx. We use nginx in a somewhat special way in that we make 1 HTTP GET and the back-end servers give a very very long (essentially never-ending) response.
>
> trouble is that i notice that the nginx worker processes keep using up more and more memory. When the connections to nginx terminate, everything seems to be cleaned up and the memory usage of the worker processes drops to normal.
>
> my ssl config looks like this:
>
> # HTTPS server
>    server {
>        server_name  myserver;
>        listen       myserver:4443;
>        ssl on;
>
>        ssl_certificate      /myserver.pem;
>        ssl_certificate_key  /myserver.pem;
>
>        proxy_ssl_session_reuse off;
>
>        ssl_protocols  SSLv3 TLSv1;
>        ssl_ciphers  HIGH:!ADH:!MD5;
>        ssl_prefer_server_ciphers   on;
>
>        proxy_buffering off;
>
>        location / {
>            root   /www/server/html;
>            index  index.html index.htm;
>        }
>
>
>        location /SERVER_1/ {
>            rewrite /SERVER_1/(.*) /$1 break;
>            proxy_set_header  X-Real-IP  $remote_addr;
>            proxy_pass http://localhost:8080;
>        }
> }
>
> i am running nginx/1.0.11
>
> I can reproduce the problem each time with a test setup of:
>
> 1 nginx and a special servlet that only dishes out a constant stream of serialized java objects. If you are interested, i can provide also this servlet. then using about 50 long-running HTTP GETs (simulating 100 clients), i can always get more memory usage in nginx.
>
> does anyone know if i misconfigured my nginx?
>
> ---
> posted at http://www.serverphorums.com
> http://www.serverphorums.com/read.php?5,431797,431797#msg-431797
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

nginx keep using more and more memory

Anonymous User January 18, 2012 02:26AM

Re: nginx keep using more and more memory

deltay January 18, 2012 04:28AM

Re: nginx keep using more and more memory

Valentin V. Bartenev January 18, 2012 05:20AM

Re: nginx keep using more and more memory

Valentin V. Bartenev January 18, 2012 05:02AM

Re: nginx keep using more and more memory

Maxim Dounin January 18, 2012 05:34AM

Re: nginx keep using more and more memory

jamflava January 18, 2012 05:58AM

Re: nginx keep using more and more memory

jamflava January 18, 2012 07:34AM

Re: nginx keep using more and more memory

Valentin V. Bartenev January 18, 2012 07:54AM

Re: nginx keep using more and more memory

jamflava January 18, 2012 05:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 221
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready