I had the same problem with my old computer which is a AMD K6-2 400MHz with 256MB memory on W2K.
I installed an APM (Apache 1.3.22 + PHP 4.1.1 + MySQL 4.0.1) as a module not a CGI. It's faster than ever. I can feel it, you may try it.
If you lot of queries on your DB, it makes your system much slower.
You better read PHP manual why PHP module is much faster (30 times in manual) than CGI install.
I recommend you to use "persistent connection" as DB connection, in my case I use mysql_pconnect() rather than mysql_connect. It's much faster.
I hope it worths to read it for your problem.
Samuli Karevaara wrote:
Hi,
Has any of you noticed problems with the PHP as cgi crashing in W2k+Apache on AMD machines, under a heavy load?
No matter what PHP functions I run, be it a simple loop from one to ten, when doing stress testing the machine crashes.
On a similar setup with a Pentium Pro everything runs smoothly.
The Apache itself doesn't crash, that is if I stress test with static html content.
The php crash happens every time if I put say more than 50 concurrent sessions GETting the php pages. On the other hand, 15 or so concurrent php 'users' never crash the system.
.samuli