Posts: 76
Name: Nick Cousins
Location: Northern Ireland
|
There are a number of processes which occur when you request a page - it's important to check which one is causing the delay.
1. DNS Lookup - your domain is being looked up by your browser to get it's IP
2. Connecting - your browser connects to your server and asks for a session
3. Sending - when your server agrees and sets up a connection - your browser sends its request
4. Waiting - your browser then waits for the server to respond
5. Receiving - when the server has performed any operations it needs to (such as PHP pre-processing) it starts sending data to the browser
Check which of these points is causing the hold-up in case you go off on a wild goose chase. Install the Firebug plugin into Firefox and use the NET tab to check.
If the delay is in the "waiting" part, then most likely PHP is to blame.
If it is prior to that it could be a load issue on the server, and if it's after that it could be the network connection.
I found that one thing that causes unexpected sudden slow down of a server can be that the network card is configured incorrectly and cannot perform "duplex" operations properly.
Are other scripts running OK? If so then it points to perhaps an infinite loop, or some other unsatisfiable condition in your script, or perhaps simply that the script is using up too much memory.
I know I'm likely to get flamed for suggesting such a thing, but I installed Joomla on my server and had to go make tea while pages loaded. So look at what software you have installed - Lots of MySQL requests can really bog down a website.
__________________
Join Please login or register to view this content. Registration is FREE
Knowledge is power. Never underestimate the power of stupid people in large numbers.
|