Re:Hire HN: Apache is crashing every hour. Seeking Drupal/Ng...
by c00p3r on Wednesday September 01, 2010 @06:08AM
(#1652335)
Re-read the OP - the problem is with threads. Switch apache to a prefork mpm - is a good solution, but replace apache with simple and more efficient setup is a much better solution.
nginx + fpm isn't a silver bullet, but it is much more efficient an flexible solution. And avoiding using threads with such a terrible mess as PHP is also good solution, which will save you a lot of time and effort.
Just think about how many things will be dynamically loaded, and how much of this code is really thread-safe and properly tested.
btw, I bet there is a mere sigsegv.
I don't doubt that your solution has been "battle-tested", but I assure you that apache + mod_php also has. Now if he has a different problem with that new setup what you will recommend then? Change again to cherokee or lighttpd? Or do you really think that nginx + fpm is a silver bullet?
I accept that spending some time cheap shooting randomly(raising os limits, changing threading model, upgrading to new version...) may be worth the time, though. But changing completely your middleware isn't a cheap shot in my book.