[BUG] memory leak and segmentation fault during reconfiguration, without master process

Maxim Dounin mdounin at mdounin.ru
Wed Mar 24 12:30:46 MSK 2010


Hello!

On Wed, Mar 24, 2010 at 05:02:51AM +0100, Manlio Perillo wrote:

> I have noted that, without the master process enabled, Nginx leasks
> memory for each reconfiguration (HUP signal).
> Moreover, after several reconfigurations it crashes (at least on my system).
> 
> With the attached Python script and using a delay of 0.2 seconds,
> Nginx crashed *exactly* after the 151th kill.
> 
> The memory usage grows from 4380 KB to about 11736 KB just before the crash.
> 
> I don't know if this is a know problem.

Yes, it's known.  Without master process nginx isn't able to 
correctly perform reconfiguration and binary upgrade.  Moreover, 
it won't be able to respawn new workers once some of them die. ;)

This isn't really problem as work without master process isn't 
supported and only present to simplify development.

Maxim Dounin



More information about the nginx-devel mailing list