Welcome! Log In Create A New Profile

Advanced

php-fpm continuesly "execution timed" but not a problem with the script!

Posted by janton 
php-fpm continuesly "execution timed" but not a problem with the script!
May 10, 2012 06:30AM
Dear Nginx/Php-fpm users,


I installed a new VPS for testing pressflow with nginx/php-fpm ,but I seem to have somekind of unkown issue.
When browse around on my website, install a modules or go to a simple page I sometimes get a nginx "504 Gateway Time-out"
After checking all the logs it seems the main cause is php-fpm that "execution timed", as i have given this option in my php-fpm config and set to 120s

This all woudn't be strainge when i was running a heavy script, but it looks like the unix socket stays open sometimes and thinks it's still executing? Then i browse around on my website and it uses that socket again and then notice it was executing to long (when it fact i'm just using it..) and i get a "504 Gateway Time-out" for simply browsing on my homepage or checking drupal log..

I hope somebody knows what the problem could be?

More inside information:
nginx version: nginx/1.2.0
PHP 5.3.13 (fpm-fcgi) (built: May 8 2012 20:28:03)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

I used the php-fpm configuration from:
https://github.com/perusio/php-fpm-example-config

and nginx settings from:
https://github.com/perusio/drupal-with-nginx

php-fmp log:
[10-May-2012 13:36:27] WARNING: [pool www0] child 21597, script '/var/www/sites/domain.com/index.php' (request: "GET /index.php") executing too slow (1490.017020 sec), logging
[10-May-2012 13:36:27] NOTICE: child 21597 stopped for tracing
[10-May-2012 13:36:27] NOTICE: about to trace 21597
[10-May-2012 13:36:27] NOTICE: finished trace of 21597
[10-May-2012 13:37:07] WARNING: [pool www0] child 21597, script '/var/www/sites/domain.com/index.php' (request: "GET /index.php") execution timed out (1530.017840 sec), terminating
[10-May-2012 13:37:07] WARNING: [pool www0] child 21597 exited on signal 15 (SIGTERM) after 1539.897944 seconds from start
[10-May-2012 13:37:07] NOTICE: [pool www0] child 22006 started
[10-May-2012 13:37:27] WARNING: [pool www1] child 21604, script '/var/www/sites/domain.com/index.php' (request: "GET /index.php") executing too slow (1553.880410 sec), logging
[10-May-2012 13:37:27] NOTICE: child 21604 stopped for tracing
[10-May-2012 13:37:27] NOTICE: about to trace 21604
[10-May-2012 13:37:27] NOTICE: finished trace of 21604
[10-May-2012 13:38:35] WARNING: [pool www0] child 21598, script '/var/www/sites/domain.com/index.php' (request: "POST /index.php") executing too slow (76.523173 sec), logging
[10-May-2012 13:38:35] NOTICE: child 21598 stopped for tracing
[10-May-2012 13:38:35] NOTICE: about to trace 21598
[10-May-2012 13:38:35] NOTICE: finished trace of 21598
[10-May-2012 13:40:08] WARNING: [pool www0] child 21598, script '/var/www/sites/domain.com/index.php' (request: "GET /index.php") execution timed out (170.236559 sec), terminating
[10-May-2012 13:40:08] WARNING: [pool www0] child 21598 exited on signal 15 (SIGTERM) after 1721.083711 seconds from start
[10-May-2012 13:40:08] NOTICE: [pool www0] child 22035 started
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 250
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