I have a Windows box loaded with Apache 2.2 and PHP 5.2. It runs great if only a few users are on it at a time, but under load testing (50 users for test #1), the CPU climbs up to 100%. Nearly all of this CPU usage comes from httpd.exe.
I currently have PHP set up via php5_module, but one of the first things I plan to try next is to use FastCGI instead. Is FastCGI better at handling multiple connections? Any other ideas on what might be causing Apache to run so high?
Update for 4/12/2010
Still having problems. Here are some things I have tried, to no avail:
- Switched from mod_php to mod_fcgid
- Added eAccelerator
- Tried non thread safe version of php