Nginx 1.20.1 excessive memory usage
|Reported by:||Owned by:|
bash-4.2$ uname -a
Linux tenant-router-7b95bc584c-s6mcx 5.4.17-2188.8.131.52.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 )
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.
From meminfo we still see cache usage is growing as traffic runs.
config for 1.20.x is attached.