Click to See Complete Forum and Search --> : PHP/IIS Performance Problems


tmyhre
08-25-2004, 08:35 PM
Hi everyone,

I have a website running PHP on a fairly powerful, dedicated Windows 2000 machine located at a hosting facility. However, I am frequently getting really long waits for HTTP requests, on the order of minutes. This problem only occurs with PHP pages, even a test page with nothing but phpinfo() in it. All ASP-based content on the same server loads instantly.

I can make the problem "go away" by restarting IIS, but it always recurs within a few hours.

Anyone have any ideas here? I can post more specific information if needed.

Thanks in advance!

tmyhre
09-01-2004, 03:09 PM
I'm still having problems so I'll add some specifications:

- Windows 2000 SP4 and IIS 5
- P4 2.40 GHz
- 1GB RAM
- 60GB IDE hard disk
- PHP 4.3.7 (running in FastCGI mode)
- MySQL 4.0.18 (optimized version)

billspeg
09-12-2004, 01:28 PM
hi i really like fast cgi myself and it worked fine on earlier versions of php 4 but stopped working with sessions after an upgrade idont know whitch since i always upgrade and then make it work how i made it work was to go back to the plain cgi that is offered by php and i really did not notice a performance loss if you are recieveing a few hundered hits a day to your site you should be all right billy

MarkR
09-12-2004, 06:10 PM
Perhaps the fastcgi works by having a pool of processes or threads, and some of them are somehow being tied up. Even a simple PHP page needs to wait for this pool to have free space.

Can you identify specific PHP pages which are taking a long time and perhaps causing the server's resources to be exhausted (of course ASP will be using a different thread / process pool)?

Perhaps it's worthwhile putting some logging either in your app, or using more verbose logging on IIS to see if you've got particular files which are causing delay. It's a pity IIS cannot make more than one access log (per site) - but perhaps you can add the times to the normal log.

Mark