Welcome! Log In Create A New Profile

Advanced

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zero load(on a test-server)

Reinis Rozitis
September 07, 2010 06:40AM
> After debugging for 6-hours - I am giving this up :|

First of all since this is clearly a php-fpm issue you should have checked
(enabled) the php-fpm logs.

In your php-fpm.conf there should be lines:

error_log = /some/path/error.log
log_level = notice

and for debugging / performance purposes its good to add:

request_terminate_timeout = 60s
request_slowlog_timeout = 20s
slowlog = /some/path/slow.log


This way php-fpm will start to log/backtrace (print the codeparts in
logfile) of requests which take longer than 20 seconds (you can adjust by
your own needs) and kill those taking longer that minute.

It should pretty much give you an idea what is happening and/or slowing down
the php to level it hangs up (the typical case is usually some code
involving sockets or db backends).


rr


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zero load(on a test-server)

Reinis Rozitis September 07, 2010 06:40AM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zero load(on a test-server)

Rahul Bansal September 07, 2010 12:08PM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

Reinis Rozitis September 07, 2010 01:00PM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

Rahul Bansal September 08, 2010 07:12AM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almostzeroload(on a test-server)

Reinis Rozitis September 08, 2010 07:22AM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

mike September 08, 2010 01:26PM

Re: Nginx + php-fpm "504 Gateway Time-out" error with almost zeroload(on a test-server)

net999 April 14, 2011 04:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready