Nginx memory limit
Hi,
I'm using cpanel's nginx in proxy mode and noticed that it can consume a quite large amount of ram per thread (2GB):
We used Engintron but we're migrating to cpanel's native nginx. I noticed that it is a bit "plain" in the optimization department so we want to use some of the Engintron's config in to it. Where is the recommended file to put this? in /etc/nginx/ea-nginx/cache.json?
client_body_buffer_size 128k;
client_body_timeout 30s; # Use 5s for high-traffic sites
client_header_timeout 30s; # Use 5s for high-traffic sites
client_max_body_size 128m;
keepalive_timeout 30s;
open_file_cache max=200000 inactive=20s;
open_file_cache_errors on;
open_file_cache_min_uses 2;
open_file_cache_valid 30s;
port_in_redirect off;
reset_timedout_connection on;
send_timeout 30s;
sendfile on;
server_name_in_redirect off;
server_names_hash_bucket_size 1024;
server_names_hash_max_size 1024;
server_tokens off;
tcp_nodelay on;
tcp_nopush on;
types_hash_max_size 2048;
Thanks,
Ignacio
Please sign in to leave a comment.
Comments
0 comments