Jump to content

cgi php better for apache2 than mod_php?


togbenson

Recommended Posts

While doing some load testing, I found it was not difficult to make my apache2 server running mod_php5 hang.  In fact the whole server would come to a crawl (running "ls" in a shell was hanging).  Yet the server was only using 200 mb of ram (out of 650).  There was no thrashing as far as I could tell.

 

I switched to cgi php and while each php page execution time increased apache can handle much bigger loads.  I can even load it up so that it's using 450 mb and it still (albeit slowly) responds to requests.

 

I am confused.  I thought mod_php was just better.

 

Thanks,

Tog

Link to comment
https://forums.phpfreaks.com/topic/75648-cgi-php-better-for-apache2-than-mod_php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.