Nginx 1.12.1 Memory Consumption
matthew.smith at acquia.com
Wed Mar 14 17:05:42 UTC 2018
I have encountered what I consider to be an interesting behavior. We have
Nginx 1.12.1 configured to do SSL termination as well as reverse proxy.
Whenever there is a traffic spike (300 req/s > 1000 req/s, 3k active
connections > 20k active connections), there is a corresponding spike in
Nginx memory consumption. In this case 500M > 8G across 10 worker
processes. What is interesting is that Nginx never seems to release this
memory after the traffic returns to normal. Is this expected? What is Nginx
using this memory for? Is there a configuration that will rotate the
workers based on some metric in order to return memory to the system?
Requests per second:
Total Nginx memory usage:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx