unosoft Posted May 31, 2011 Share Posted May 31, 2011 About a week ago, all my PHP sites began to resolve extremely slow. It takes up to 10 minutes, to load a simple page! Plain HTML pages seems to run fine... It is a Win 2K3 server, IIS 6.0 and PHP 5. I read somewhere that it might would help to turn on output_buffering. But in my php.ini file output_buffering is set to 4096 - so it is turned on. I tried to set it to 16192, but the problem persists. It helps to restart the IIS Admin Service - but only for a few minutes. Does anyone have an idea what might be wrong? Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/ Share on other sites More sharing options...
unosoft Posted May 31, 2011 Author Share Posted May 31, 2011 I have also tried "output_buffering = on" - but the problem still persists... Working fine for 1-2 minutes after resetting IIS - then it gets VERY slow again... Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1222810 Share on other sites More sharing options...
gristoi Posted May 31, 2011 Share Posted May 31, 2011 have you added any extra queries to the site in the last week, could be a memory leak caused by your sql. have a look at setting up the mysql slow query logs and see if that's causing an issue? Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1222829 Share on other sites More sharing options...
PFMaBiSmAd Posted May 31, 2011 Share Posted May 31, 2011 I don't have an answer to your actual problem, but don't try to 'fix' it by turning on php settings. You have some fundamental problem on your server (hardware (memory, disk), operating system, IIS, php, mysql...) and nothing you do with php settings is going to correct a problem that suddenly appeared. You need to find the root cause of the problem. You need to be examining your server event logs, the iis logs, the performance monitor, the task monitor, disk health information, mysql logs, looking for huge data/log files, virus (both in the operating system and php script files), ... to find the cause of the problem. Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1222837 Share on other sites More sharing options...
unosoft Posted May 31, 2011 Author Share Posted May 31, 2011 I didn't make any changes at all on the server when the problems started. I can't find anything in the event log indicating an error. Taks monitor looks fine, lots of free resources. It is a MSSQL database, running several other sites without problems. Maybe it is hardware related? What will you recommend, chkdsk maybe? And some RAM testing software? Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1222846 Share on other sites More sharing options...
unosoft Posted May 31, 2011 Author Share Posted May 31, 2011 This (attached) is my IIS log from one of the affected sites. It looks OK, right? [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1222847 Share on other sites More sharing options...
PFMaBiSmAd Posted May 31, 2011 Share Posted May 31, 2011 It is a MSSQL database, running several other sites without problems. ^^^ LOL, any other relevant information you would like to share? Perhaps if you told us exactly what setup you have - how many server boxes, what works/doesn't work on each box, where the one web site is that doesn't work, if there are other php based web sites on that same box that do work correctly... You know, information that you know about the situation that narrows down the problem so that we don't waste a bunch of time guessing. Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1222854 Share on other sites More sharing options...
Doug G Posted June 3, 2011 Share Posted June 3, 2011 Look for any DNS problems on either the server or your workstation. A dead DNS server can really slow things down. Quote Link to comment https://forums.phpfreaks.com/topic/237978-php-pages-resolving-extremely-slow/#findComment-1224503 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.