I have a site which has been built in modx and when its hit with load uses up all cpu processing power and top is showing a lot of defunct php zombie processes consuming this.
Here's the system specs...
PHP 5.2.14
php running as suPHP
Mysql 5.1.51
Apache 2.0.63
modx 1.0.4
For testing im using ApacheBench and simulating 500 connections with 100 concurrent connections
I've tested this out 2 ways now...
Turning off .htaccess and stress testing a simple php page that just echoes 'Hello world'.
In top this shows php going defunct and turning into a zombie but they go away pretty quickly
Calling a page served by modx, where php is doing a lot more, spawns more zombies that eat more cpu and some of them dont go away quickly.
What would be causing this? Would it be a mistake in our code - in which case why does the simple Hello World script spawn zombies?
Is it some problem with server config or with putting too much load on the server?
Scratching my head about this all now and hoping for some pointers as to what to do next.