My site seems to be running good/bad randomly.

I can load one page and it will load quickly like I would expect it to.

I can reload the same page and it just sits for 20-30 seconds and then shows nothing (inside Firefox, IE gives page not found error).

I can then reload that same page a third time and it loads like it should.

What could be the cause of this?

Sometimes on a page, it seems as though it has to 'think' for maybe 5-10 seconds before it starts to load.

Any ideas on what I can check would be a great help!

Thanks!

Comments

Jeff Burnz’s picture

Well it could be all manner of things, not discounting your connection dropping out, one thing I have noticed using Windows and FF (I'm a relative newbie to Windows and MS stuff) is that it (firefox) has a massive memory leak. If I have too many tabs open for too long it will start hanging just as you point out. If I check the resource usage 9/10 I have run out of memory due to FF hogging it all - IE can time out and the whole system can hangs for 20, 30 even 40 seconds or more. I'm talking about FF taking up over a GB of RAM with perhaps 10 or 12 tabs open.

Always solved by rebooting FF.

Of course it could be your server, this is just something that happens to me every day on the Win box... (he says, eagerly awaiting the arrival of the new mac...).

dadofgage’s picture

I have had a few other users test it out from different computers and they are experiencing the same thing as well.

If it is a hosting issue (which the site was just moved to) - what could I check on that end?

Jeff Burnz’s picture

In that case it may well be a database connection issue - if you are on a shared server and sharing the database you are also sharing the number of allowed connections to the database, if they start to queue up the whole thing will slow right down - if it starts thrashing it will probably go into auto reboot (thus drop all connections for 20 or 30 seconds while it reboots).

Ask your host, you need plenty of RAM for Drupal to run quick and smooth, especially with lots of modules enabled (use the developer module to check stats on memory usage). You should try bumping up memory for PHP (you can set this in htaccess, google it) and ask the host if they're using an OP cache for PHP such as ACP.

If you can, turn on the Drupal cache (agressive mode if at all possible) and compress CSS as well (use the blockcache module also, its great).

dadofgage’s picture

We I have been working with the host and he increased the memory that PHP is able to use and that is helping a great deal.

Now the only part of the site that is running slow are the views - anyone have thoughts why just this part would be slow?