Hi All, I think I haven't been clear in what I'm seeing so let's start over. :) I set up a very simple test on Centos 7 with a default install of Nginx 1.12.2. Below is exactly what I did to produce the result and it's clear to me that Nginx is using 2x the ram than it should be using after the first reload. Can anyone explain why the ram usage would double after doing a config reload?
yum update reboot yum install epel-release yum install nginx systemctl enable nginx systemctl start nginx yum install ps_mem vim cd /etc/nginx/ vim vhost.template -------------------------------------------------------------------------------- server { listen 80; listen [::]:80; server_name {{DOMAIN}}; root /var/www/html; index index.html; location / { try_files $uri $uri/ =404; } } -------------------------------------------------------------------------------- cd conf.d for i in $(seq -w 1 50000); do sed 's/{{DOMAIN}}/dom'${i}'.com/' ../vhost.template > dom${i}.conf; done systemctl restart nginx ps_mem|grep nginx -------------------------------------------------------------------------------- 13.8 MiB + 750.7 MiB = 764.5 MiB nginx (3) -------------------------------------------------------------------------------- systemctl reload nginx; sleep 60; ps_mem |grep nginx -------------------------------------------------------------------------------- 27.2 MiB + 1.4 GiB = 1.5 GiB nginx (3) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283216,283344#msg-283344 _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx