cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
563 stars 104 forks source link

Cherokee & php-fcgi crashes under many connections after a while #716

Open danielniccoli opened 11 years ago

danielniccoli commented 11 years ago

Original author: i...@cmsfruit.com (August 31, 2010 18:50:36)

What steps will reproduce the problem?

  1. Install Cherokee v1.0.8 on a Ubuntu server and run simultaneous connections for a day or so and then cherokee php crashes.

What is the expected output? What do you see instead? Our websites stop responding and cherokee needs to be restarted.

What version of the product are you using? On what operating system? v1.0.8 on Linux Ubuntu Server

Please provide any additional information below.

We run a very busy website where hundreds of users connect to our servers and an interval of 2 seconds calling a PHP page which basically serves as a chat server... running cherokee on the server for a day or so and php-fcgi crashes and the website completely stops responding, however the cherokee processes and the php-fcgi processes are still running.... but then I have to restart cherokee to fix the issue.... so basically cherokee runs fine for about a day or so and when traffic gets heavy on our server, cherokee (php-fcgi) crashes and needs to be restarted. I looked through cherokee error log and the only thing that is there is this:

(error) fdpoll-epoll.c:140 - epoll_ctl: ep_fd 18, fd 347: 'No such file or directory'

and it's repeated many times.... but I'm not sure what it means or if its related to php-fcgi crashing. I also checked the server's memory at the time of the crash and there is no sign of memory swapping or anything... everything looks like it should be running fine, but cherokee just stops responding.

Any help would be greatly appreciated! As you can imagine this is a production server and we would really like to keep cherokee on there if it would not crash.

John

Original issue: http://code.google.com/p/cherokee/issues/detail?id=974

danielniccoli commented 11 years ago

From michael....@gmail.com on November 10, 2010 13:22:48 Maybe http://code.google.com/p/cherokee/issues/detail?id=940 is related

danielniccoli commented 11 years ago

From hcarvalh...@gmail.com on March 18, 2011 13:26:32 I had the same issue in production today, running a Wordpress installation under php-fcgi. Somehow php-fcgi crashed and caused ALL my other sources to produce a 504 Gateway Timeout (even the ones not related to php, e.g. django).

Restarting cherokee alone didn't helped until I SIGKILLed php-fcgi. Logs show nothing.

Pretty disappointed with the stability of latest releases.