Welcome! Log In Create A New Profile

Advanced

Nginx CPU Issue : Remain at 100%

Yogesh Sharma
September 29, 2017 07:40AM
Team,

I am using nginx as Reverse proxy, where I see that once CPU goes up for
Nginx it never comes down and remain there forever until we kill that
worker. We tried tweaking worker_processes to number of cpu we have, but it
did not helped.

Any suggestion in this regards will help.

*Version:* nginx-1.10.1-1.el6

Below is the config:

user nginx;
worker_processes 2;

pid /var/run/nginx.pid;

worker_rlimit_nofile 65535;

events {
worker_connections 15000;
}

http {

include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format xxxxxxxxx';

sendfile on;

server_tokens off;
resolver 127.0.0.1 valid=30s;
resolver_timeout 1s;
keepalive_requests 75;
keepalive_timeout 5 5;

server_names_hash_bucket_size 128;
server_names_hash_max_size 1024;

proxy_buffers 4 32K;
proxy_buffer_size 32k;
proxy_connect_timeout 5s;
proxy_read_timeout 305s;

proxy_set_header Host $http_host;
ignore_invalid_headers off;
underscores_in_headers on;
client_header_buffer_size 15k;
client_body_buffer_size 16K;
client_max_body_size 300M;
send_timeout 305s;


include /etc/nginx/conf.d/*.conf;
}




*Thanks & Regards,​Yogesh Sharma*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx CPU Issue : Remain at 100%

Yogesh Sharma September 29, 2017 07:40AM

Re: Nginx CPU Issue : Remain at 100%

Valentin V. Bartenev September 29, 2017 07:50AM

Re: Nginx CPU Issue : Remain at 100%

Yogesh Sharma September 30, 2017 03:46AM

Re: Nginx CPU Issue : Remain at 100%

Igal @ Lucee.org October 01, 2017 06:48PM

Re: Nginx CPU Issue : Remain at 100%

Yogesh Sharma October 07, 2017 12:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready