Opened 14 months ago

Last modified 13 months ago

#2558 closed defect

Memory Leak (maybe WebSocket) — at Version 2

Reported by: Roman Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.24.x
Keywords: memory leak websocket Cc: Roman
uname -a: Linux 5.10.7-1.el7.elrepo.x86_64 #1 SMP Mon Jan 11 17:32:42 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.24.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --add-module=debian/modules/nginx_upstream_check_module-0.4.0 --add-module=debian/modules/ngx_http_geoip2_module --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --with-http_stub_status_module --http-client-body-temp-path=/home/nginx/tmp/body-temp-path --http-proxy-temp-path=/home/nginx/tmp/proxy-temp-path --http-fastcgi-temp-path=/home/nginx/tmp/fastcgi-temp-path --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_flv_module --with-http_stub_status_module --with-http_image_filter_module --with-http_secure_link_module --with-http_auth_request_module --with-ipv6 --with-stream --with-http_v2_module --with-http_geoip_module --with-stream_geoip_module

Description (last modified by Roman)

We use a little WebSocket.

And sometimes we execute

kill -USR1 $(cat /var/run/nginx-81.pid)

to reopen logfiles and nginx creates many workers in shutdown mode. But it workers works for a long time and the next time we again reopen our logfiles (1200 file) and than nginx again creates shutdown worker by that some times later the server starts to consume a lot of RAM

https://trac.nginx.org/nginx/raw-attachment/ticket/2558/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%BE%D1%82%202023-11-07%2016-32-25.png

How to debug I this problem with memory?

Change History (4)

comment:1 by Roman, 14 months ago

Description: modified (diff)

comment:2 by Roman, 14 months ago

Description: modified (diff)

by Roman, 14 months ago

Attachment: ram.png added
Note: See TracTickets for help on using tickets.