atom feed9 messages in ru.sysoev.nginxRe: nginx keep using more and more me...
FromSent OnAttachments
ngin...@serverphorums.comJan 17, 2012 10:00 am 
Delta YehJan 18, 2012 1:26 am 
Valentin V. BartenevJan 18, 2012 1:59 am 
Valentin V. BartenevJan 18, 2012 2:17 am 
Maxim DouninJan 18, 2012 2:31 am 
Saqib RasulJan 18, 2012 2:56 am 
Saqib RasulJan 18, 2012 4:32 am 
Valentin V. BartenevJan 18, 2012 4:51 am 
Saqib RasulJan 18, 2012 2:05 pm 
Subject:Re: nginx keep using more and more memory
From:Saqib Rasul (saqi@gmail.com)
Date:Jan 18, 2012 4:32:40 am
List:ru.sysoev.nginx

Also do you know or can give an estimate of when the 1.1 version will go stable?

regards,

Saqib

Hi,

thanks for the answer.

regarding your tip about proxy_buffers, i dont think its that because i have disabled proxy_buffering.

I will try out my tests with 1.1 version of nginx and let you know.

regards,

On Wed, Jan 18, 2012 at 11:31 AM, Maxim Dounin <mdou@mdounin.ru> wrote:

Hello!

On Tue, Jan 17, 2012 at 07:01:01PM +0100, ngin@serverphorums.com wrote:

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.

[...]

i am running nginx/1.0.11

Please try 1.1.x.  There is one known problem in 1.0.x which causes it to allocate about 2 pointers per buffer sent.  This is known to be noticeable in long-running response case.

The problem was fixed in 1.1.4, but unfortunately it's impossible to merge the fix into 1.0.x due to required API change.