Opened 8 years ago

Closed 7 years ago

#996 closed defect (worksforme)

nginx memory leak

Reported by: enjoychange@… Owned by:
Priority: minor Milestone:
Component: other Version: 1.10.x
Keywords: Cc: taicli@…
uname -a: Linux messagepush-05 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.1.1503 (Core)
Linux messagepush-05 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.1.1503 (Core)
Linux messagepush-05 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.1.1503 (Core)
nginx -V: nginx/1.10.1

Description

Hello,

I am from Microsoft azure team. One of our customers deploys nginx on Centos 7.1 in azure and he reports that almost 10G memory is missing. After investigation, we find out that nginx process will open access log . And if there are too many records in the access log, memory will be eaten up. killing nginx process will not help to release memory. We need to reboot the Virtual machine or clear the access log to release memory. Please help to investigate. Many thanks.

Best regards,
Tommy

Attachments (3)

nginx-memory-leak.txt (85.0 KB ) - added by enjoychange@… 8 years ago.
reproduceIssue.png (125.8 KB ) - added by enjoychange@… 8 years ago.
reproduce the issue in the lab
nginx.conf (5.5 KB ) - added by enjoychange@… 8 years ago.
please find the nginx configuration attached

Download all attachments as: .zip

Change History (9)

by enjoychange@…, 8 years ago

Attachment: nginx-memory-leak.txt added

by enjoychange@…, 8 years ago

Attachment: reproduceIssue.png added

reproduce the issue in the lab

comment:1 by Valentin V. Bartenev, 8 years ago

Could you provide configuration and output of nginx -V?

comment:2 by enjoychange@…, 8 years ago

[root@messagepush-05 sbin]# ./nginx -V
nginx version: nginx/1.8.0
built by gcc 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --user=ngxpush --group=users --prefix=/home/ngxpush --conf-path=/home/ngxpush/conf/nginx.conf --with-http_ssl_module --with-http_stub_status_module --with-debug --with-cc-opt=-O0 --with-ld-opt='-lnginx_push -Lplugin/nginx-push-stream-module-master/smarttv-lib' --add-module=plugin/nginx-push-stream-module-master

by enjoychange@…, 8 years ago

Attachment: nginx.conf added

please find the nginx configuration attached

comment:3 by enjoychange@…, 8 years ago

Customer's version is nginx/1.8.0. We reproduce it in the lab, the version there is 1.10.1. thanks for your help

comment:4 by Valentin V. Bartenev, 8 years ago

Could you try without the 3rd-party module?
See also: https://github.com/wandenberg/nginx-push-stream-module/issues/235

comment:5 by enjoychange@…, 8 years ago

Hi vbart,

thanks for your help. I have provided the update to END user.

Cheers,
Tommy

comment:6 by Maxim Dounin, 7 years ago

Resolution: worksforme
Status: newclosed

Feedback timeout, likely a 3rd party module problem.

Note: See TracTickets for help on using tickets.