id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,uname,nginx_version 1587,memory leak with ngx_http_image_filter_module,dyeldandi@…,,"We have an nginx running on port 8889 to resize/crop images with http_image_filter module. It's doing about 600K hits (resizes/crops) per day. The configuration file is attached. Over time its memory footprint grows at approximate rate of 1.5 GB per day. {{{ USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 26612 0.0 0.0 56764 492 ? Ss Jun25 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf root 26613 1.8 4.5 796764 741116 ? S< Jun25 180:38 nginx: worker process root 26614 1.5 3.6 643172 582292 ? S< Jun25 149:16 nginx: worker process root 26615 5.1 15.4 2606648 2498452 ? S< Jun25 506:30 nginx: worker process root 26616 4.0 13.4 2282260 2175168 ? S< Jun25 401:32 nginx: worker process root 26617 2.9 8.8 1509224 1434856 ? S< Jun25 289:00 nginx: worker process root 26618 6.9 20.4 3438772 3298556 ? S< Jun25 688:02 nginx: worker process root 26619 3.4 9.0 1558788 1459996 ? S< Jun25 344:03 nginx: worker process root 26620 2.3 6.6 1150284 1078564 ? S< Jun25 230:11 nginx: worker process }}} In about a week it grew from 400Mb to 10GB. The same nginx build without image_filter module serving static files and doing proxy doesn't have this problem.",defect,closed,major,,nginx-module,1.12.x,invalid,image filter,,Linux hostname 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux,"nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) built with OpenSSL 1.0.2l 25 May 2017 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-openssl=openssl-1.0.2l --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --with-ld-opt="