NGINX reload memory leak

Aleksandar Lazic al-nginx at
Tue Mar 8 16:19:08 UTC 2016


Am 08-03-2016 14:01, schrieb ben5192:
> 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?

Please can you post:

.) nginx -V
.) the config
.) lsb_release -a or something similar for your system
.) HW/VM/Image setup

> Thanks,
> Ben.
> Posted at Nginx Forum:
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list