We are running a Symfony application on Ubuntu 14.04 with Nginx and PHP-FPM
The problem is that individual PHP FPM will occasionally hang on our production servers.
I have the output from the status page:
pid: 13416
state: Finishing
start time: 08/Sep/2014:12:35:29 +1000
start since: 10548
requests: 3
request duration: 158138427297
request method: GET
request URI: /app.php?searchText=Search+term&page=2
content length: 0
user: -
script: /var/projects/site_path/app.php
last request cpu: 0.00
last request memory: 0
I can't figure out why this process is hanging.
If I strace the process it is just looping with this:
# strace -p 13416
gettimeofday({1410154710, 385743}, NULL) = 0
I have checked the Nginx access logs and matched up the request and the request is fine, it's returning a 200 and no errors can be replicated using the url).
Any help would be greatly appreciated
Access logs:
172.30.12.110 - - [08/Sep/2014:12:35:29 +1000] "GET /search?searchText=Search+term&page=2 HTTP/1.1" 200 11174 "/search?searchText=Search+term" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; MATPJS; rv:11.0) like Gecko"
172.30.12.110 - - [08/Sep/2014:12:35:32 +1000] "GET /search?searchText=Search+term&page=2 HTTP/1.1" 200 11174 "-" "Mediapartners-Google"
172.30.12.110 - - [08/Sep/2014:12:35:34 +1000] "GET /search?searchText=Search+term&page=2 HTTP/1.1" 200 11169 "-" "Mediapartners-Google"
172.30.12.110 - - [08/Sep/2014:12:35:51 +1000] "GET /search?searchText=OSearch+term&page=3 HTTP/1.1" 200 11158 "/search?searchText=Oven+baked+duck+and+shitake+rissotto&page=2" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; MATPJS; rv:11.0) like Gecko"
172.30.12.110 - - [08/Sep/2014:12:36:50 +1000] "GET /profile/ HTTP/1.1" 200 8108 "/search?searchText=Oven+baked+duck+and+shitake+rissotto&page=4" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; MATPJS; rv:11.0) like Gecko