Opened 2 years ago

Last modified 2 years ago

#2293 closed defect

Nginx 1.20.1 excessive memory usage — at Version 1

Reported by: luyangliang@… Owned by:
Priority: major Milestone:
Component: nginx-core Version: 1.19.x
Keywords: Cc:
uname -a: bash-4.2$ uname -a
Linux tenant-router-7b95bc584c-s6mcx 5.4.17-2102.205.7.3.el7uek.x86_64 #2 SMP Fri Sep 17 16:52:13 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.20.2

Description (last modified by luyangliang@…)

Running Nginx 1.20.x with HTTP/2 traffic 225req/s, see memory usage keep increasing. In couple hours it reached 1.5GB and the memory never released.

We rolled back to 1.19.1 and memory is much better. But still slow memory leak as traffic runs.

The nginx.conf in 1.20.1 we have to replace http2_max_requests to use keep_alive due to the detective obsolete.

We have:

proxy_buffer off
proxy_cache off

From meminfo we still see cache usage is growing as traffic runs.
config for 1.20.x is attached.

Change History (1)

comment:1 by luyangliang@…, 2 years ago

Description: modified (diff)

Can't attach configuration. I will share that when it is needed.

Note: See TracTickets for help on using tickets.