When there is a problem the very first step is to find out what's happening. Apache is rock solid software so there must be something in his setup or software that isn't right.
My line of action would be:
- check the logs(apache and system ones), looking for errors or limits reached.
- if no clue, try to reproduce it, same os, software versions. Make scripts to simulate the load.
- strace the processes when they lockup (dtrace 'em in Solaris).
- get a coredump(kill -SIGABRT), compile apache and their module with symbols (-g CFLAG), an gdb it.
I'm not a sysadmin anymore, but that's what I would have done when I was one.Is that never crossed your mind that the solution I recommended were battle-tested one?
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.
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.
It works great. We've been front-paged on Digg and REddit in the last few months and the site didn't even flinch. You could drop a bomb on us and Nginx would behave like a champ.
But then we still crash every 80 minutes or so no matter how many or how few visitors we have to the site.
So nginx is awesome and we're using it bigtime and with great results. Not solving this one though I don't think.
In an fpm more php runs as a standalone FastCGI-server, outside of apache or other web server. It could run on the same machine with a web server (in that case you should configure them to use unix-sockets, which is even better) or on a separate one.
You will save a lot of memory, and will gain even more speed due to php script's caching.
There are millions of step-by-step tutorials for these keywords.
If you have a test installation you can do it yourself and then change settings on your production server. If not you should setup an another copy on the same server with a different port nginx should listen to and empty drupal instance, test it. Then you can stop apache and start nginx on a correct port with proper drupal instance.