Home
 

Customer Support

Search for keywords:

Browse by category:

Why does your service seem slow?

Slow response time could be caused from several sources. You will need to perform some tests to see where it is coming from before reporting slowness:
  1. There could be congestion on the internet between you and us that slows down your connection to us. To determine whether this is the problem, perform a traceroute test as described in this other FAQ to figure out if you are just experiencing bad internet connectivity, and not a problem with any of our servers.

  2. If you determine from traceroutes that there is no network congestion or internet routing problem interfering with your connection to us, then check the following:

  3. If your FTP file transfers are slow, check all the advice found here.

  4. If you think your MySQL queries are slow, you should make sure that all JOINS are done correctly (that left joins are not done backwards with tables in the wrong order), that every column mentioned in the WHERE or ORDER BY clause of any SELECT query has a table index on that column, and that you have no VARCHAR type columns in any table. You can make table indexes on columns and change column types using the Onsite Control Panel. If your tables and queries are not optimized this way, then your queries will be hundreds of times slower than they would otherwise be.

  5. If you think any page on your website is slow, remove any references in your HTML code to objects (like images, banners, etc) that are hosted elsewhere. If that other host is slow or having a problem and your page tells a browser to load something from that other site, then that other site will cause your page to render very slowly or not at all.

  6. If you think your PHP driven website is slow, use the PHP stopwatch below to time the page's execution. Create a new file in the same directory as the slow webpage named timer.php and copy/paste the following into it:
    <?
    class BC_Timer{
    var $stime;
    var $etime;

    function get_microtime(){
    $tmp=split(" ",microtime());
    $rt=$tmp[0]+$tmp[1];
    return $rt;
    }

    function start_time(){
    $this->stime = $this->get_microtime();
    }

    function end_time(){
    $this->etime = $this->get_microtime();
    }

    function elapsed_time(){
    return ($this->etime - $this->stime);
    }
    }
    ?>
    After you do that and save the timer.php file, edit the file of the webpage that you think is slow, and insert the following PHP code:
    <? # start at the top of the file
    # with a PHP open tag
    require("timer.php");
    $timer = new BC_Timer;
    $timer->start_time();

    # All your pre-existing PHP code goes here

    # then at the end of the file, insert:
    $timer->end_time();
    echo number_format($timer->elapsed_time(), 3) . " seconds";
    ?>
    Save the changes and reload that webpage. Even very complicated PHP pages should execute in less than a second.

    If your script is taking longer, move the $timer->end_time(); line closer to the beginning of the script (after the call to start timer), save changes, and reload/refresh the page, check the time it took to execute. Keep moving the call to stop timer lower and lower and rechecking until you get a dramatic jump in elapsed time. That will show you where you need to improve your php coding. If your time dramatically slows down after a MySQL query, see #2 above on how to speed up queries.

User-Contributed Notes

add a note
28-Jun-2003 19:48
If your webpage is making connections to external sites with javascript
like:

   script                                                               
                                                      
src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe";

or image tags like

   img src=http://some-other-site/img.jpg

AND if that other external site is slow, is down, or is having any other
problem, then it will cause your pages that link to that object to slow
down while the browser is stuck trying to load the bad object from the
other site.

This is because the browser is trying to fetch the off-site object in
order to determine how to render the rest of your page. If the off-site
object can't be reached, your page will load slowly or not at all.

27-Aug-2004 19:28
Some good sites to help figure out why your site is slow:

http://www.websiteoptimization.com/services/analyze

http://www.webperf.org/breakdown.html

sb1304 -at- hotmail.com
31-Dec-2004 05:42
intermediate times can be got through adding the following to the class
-

function stopwatch() {
$this->ttime = $this->get_microtime();
return ($this->ttime - $this->stime);
}

and put
echo $time->stopwatch. " seconds";

anywhere in the script you want to check the intermediate time. The
$timer->end_time() can then be left for the full script time 

grace -at- dailymail.co.uk
13-Feb-2008 06:04
viagra online online 
 <a href="http://www.conceptart.org/forums/member.php?u=98291">viagra
online</a> 
 http://www.conceptart.org/forums/member.php?u=98291 
 [url=http://www.conceptart.org/forums/member.php?u=98291]viagra
online[/url] 

add a note

Related Questions:


Can I have a crontab?

How do I do a traceroute to diagnose network problems?

My POST to a secure form results in a blank page, the same form, or a 500 Internal Server Error.

Internet Explorer shows a blank page on an SSL website like the Control Panel or signup page.

How do I get a command prompt on my own computer?

After I install Bugzilla, I get error 403 Forbidden.

How do I install Gallery?

I am having trouble installing phpBB2

Where can I find links to 'Standards-Compliant' Web browsers?

Do you provide CVS?

How do I use a robots.txt file?

Can I use streaming media on my site?

Do you support Flash, Shockwave, Java Applets?

I installed Norton Internet Security, and now I can't see video and other multimedia.

How do I use MnogoSearch Indexer?

Do you run Linux?

Can I use a blog or other content management system?

Do you have Postgres?

Why doesn't mivascript interpret GET variables?

How do I contact my registrar?

What does everything in a Wusage report mean?

Whenever I make changes with Movable Type I get SBOX errors.

Are there any resources for dealing with comment spam in a Movable Type blog?

How Do I Add A Google Sitemap To My Website?

Do you provide SVN?

What can I do to improve Drupal's loading speed?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us