I have found that after requesting several php pages in succesion, the page load time seems to slow down, before eventually not loading, and giving 504.

I can't find any relevant errors except this in the php5-fpm log

[13-Dec-2013 17:53:41] WARNING: [pool web36] child 6797 exited on signal 9 (SIGKILL) after 3165.155870 seconds from start
[13-Dec-2013 17:53:41] NOTICE: [pool web36] child 8078 started
[13-Dec-2013 17:55:15] WARNING: [pool web36] child 7848 exited on signal 9 (SIGKILL) after 633.767987 seconds from start
[13-Dec-2013 17:55:15] NOTICE: [pool web36] child 8100 started
[13-Dec-2013 17:56:19] WARNING: [pool web36] child 7914 exited on signal 11 (SIGSEGV) after 455.341786 seconds from start

How should I troubleshoot from here on in?

Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64) PHP 5.3.10-1ubuntu3.5 with Suhosin-Patch nginx/1.1.19

  • The first thing to do is to provide a complete description of your environment. Software version numbers, hardware, etc. We are not mind readers! – Michael Hampton Dec 13 '13 at 7:58

Nginx will throw a 504 gateway time-out when your php script takes too much time (longer than 60 seconds).

It's possible to optimize php script or increase nginx fastcgi_read_timeout param (http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html).


location ~ /(index).php {
    fastcgi_read_timeout 3m;

    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param  PATH_INFO        $fastcgi_script_name;
    include fastcgi_params; 
  • So the problem is in the php script? Is this a tell tale sign that php is running slowly or low on resources? – Adripants Jan 30 '14 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.