NGINX reload memory leak
ben5192
nginx-forum at forum.nginx.org
Tue Mar 8 17:03:28 UTC 2016
Yeah, here's the outputs:
nginx -V
nginx version: nginx/1.9.9
configure arguments: --prefix=/path/to/my/module --with-debug
--with-ld-opt=-lm
config (with some names changed):
events {
worker_connections 1046;
}
http {
my_set_int 10000;
my_set_string /path/to/a/data/file;
my_set_another_int 20;
server {
listen 8888;
location / {
my_location_function string;
proxy_pass http://localhost/;
}
}
}
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
This is running in a Hyper-V virtual machine with an i7 processor.
Thanks
Aleksandar Lazic Wrote:
-------------------------------------------------------
> Hi.
>
> 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:
> > https://forum.nginx.org/read.php?2,265157,265157#msg-265157
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > https://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265157,265160#msg-265160
More information about the nginx
mailing list