RockyLinux8 nginx memory leak

  • Setting environment
    RockyLinux 8.x
    nginx 1.26.1

I’m hosting about 700 vhosts with nginx.

The CentOS7 version is fine, but RockyLinux 8 has a high overall memory footprint.
In addition, the nginx - reload command does not return memory normally and causes a leak.

RPM and compile installation are all the same symptoms
I’ve also tried changing the nginx version, but I couldn’t solve it.

I would like to ask if there is a solution regarding this.

I’m sorta new here, but this looks super relevant to what you’re experiencing if you haven’t looked into this already:

Absolutely seeing the same behavior. We’ve switched from Centos 7 to RL8 and nginx is constantly allocating memory, which turn out to be inactive anon pages. Upon reload, if the available memory is low, you can get oom errors when new workers are fork()-ed.

Right now, I’m trying out RL 9.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.