November 15, 2013 05:51AM
Hi,

I have a lot of 500 http error in nginx access.log.
I think it's due to the number of requests that nginx receives. Because when I was testing the configuration with one ip adress I don't have this error but when I redirect all client traffic (sometimes more than 2000 simultaneous connexions) to nginx I'm getting 500 http error.
I don't have any error log in error.log.

I tried to modify this parameters : worker_connections, worker_rlimit_nofile, keepalive_timeout, proxy_connect_timeout ...

And then I start to get this logs in error.log :
worker process XXXXX exited on signal 11
an upstream response is buffered to a temporary file /var/lib/nginx/proxy/2/00/0000000002
failed (104: Connection reset by peer) while sending response to client


Here is my nginx.log conf :

user www-data;
worker_processes 4;
worker_rlimit_nofile 50000;
pid /var/run/nginx.pid;

events {
worker_connections 50000;
}

http {

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 20;

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

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

gzip on;
gzip_disable "msie6";

proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 50M;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_buffer_size 128k;
proxy_buffers 4 254k;
proxy_busy_buffers_size 256k;

include /etc/nginx/sites-enabled/*;
}

When I execute top command, cpu and RAM usage are not hignt (max cpu 7% and ram 4%).

Any help would be appreciated.
Thanks.
Subject Author Posted

NGINX 500 http error

fatine,al November 15, 2013 05:51AM

Re: NGINX 500 http error

Maxim Dounin November 15, 2013 06:04AM

Re: NGINX 500 http error

fatine,al November 15, 2013 07:00AM

Re: NGINX 500 http error

Maxim Dounin November 15, 2013 08:24AM

Re: NGINX 500 http error

fatine,al November 15, 2013 09:16AM

Re: NGINX 500 http error

fatine,al November 21, 2013 10:51AM

Re: NGINX 500 http error

itpp2012 November 21, 2013 12:11PM

Re: NGINX 500 http error

fatine,al November 22, 2013 05:05AM

Re: NGINX 500 http error

itpp2012 November 22, 2013 06:40AM

Re: NGINX 500 http error

fatine,al November 28, 2013 06:21AM

Re: NGINX 500 http error

itpp2012 November 28, 2013 06:47AM

Re: NGINX 500 http error

fatine,al December 03, 2013 04:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready