Jump to content

PHP Execution -- very baffled


phpknight

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/60515-php-execution-very-baffled/
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.