NGINX reload memory leak

Robert Paprocki rpaprocki at
Tue Mar 8 16:45:44 UTC 2016

This may be more appropriate for the nginx-devel list. Additionally, when you post there you'll probably want to include your modules source so people can actually assist in debugging. 

> On Mar 8, 2016, at 05:01, ben5192 <nginx-forum at> wrote:
> Hi,
> I am working on a module for NGINX and am having a problem with memory
> leaking when using "./nginx -s reload". Everything that is allocated is done
> so through ngx_palloc or ngx_pcalloc so NGINX should know to clean it up. I
> have also added a function to exit process which uses ngx_pfree on
> everything and then destroys the pool I created with ngx_destroy pool, so
> there should be nothing left. Even so, each reload increases the memory
> slightly till NGINX crashes.
> Any ideas on why this is happening?
> Thanks,
> Ben.
> Posted at Nginx Forum:,265157,265157#msg-265157
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list