phpknight Posted July 18, 2007 Share Posted July 18, 2007 This problem is just killing me. I have a site where scripts sometimes take .1 seconds to run and sometimes take 25 seconds. I know the latter from email, but the scripts are usually fast for me. Here is a list of what has been checked. Anybody who is an expert in this sort of thing, I would appreciate help. Queries: I check every query time. mySQL is always under 2% of the total time. Site Traffic: I have a dedicated server for a small site--almost no load. Images: Load on the client. Not an issue. Bad code: I seriously do not think any coding issue could do this. Plus, bad code is always bad. I email myself when a script takes too long. The SAME script with the SAME query and loop will spend 10 seconds in the sidebar. Twenty minutes later, it is 10 seconds in the body. I cannot pinpoint this no matter what I do. Has anybody experienced anything like this, and if so, what was the solution? Quote Link to comment https://forums.phpfreaks.com/topic/60515-php-execution-very-baffled/ Share on other sites More sharing options...
adam_ Posted July 18, 2007 Share Posted July 18, 2007 Hi Are you sure you are not running any intensive scripts on the server? or more importantly, nobody else is? Also have you checked this from multiple computers? Adam Quote Link to comment https://forums.phpfreaks.com/topic/60515-php-execution-very-baffled/#findComment-301056 Share on other sites More sharing options...
phpknight Posted July 18, 2007 Author Share Posted July 18, 2007 Yes, and yes. It is my server (managed), so it is only my small site. I just can't figure it out. The server should be able to easily handle a site 100x what mine is. Quote Link to comment https://forums.phpfreaks.com/topic/60515-php-execution-very-baffled/#findComment-301063 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.