CMS MS site very slow to load

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm

CMS MS site very slow to load

Post by SusanN »

na tra dr y.com

My client has let me know that his site is loading very slowly and was wondering if there's anything that can be done to improve the situation.  Just now when I loaded the site, this is what it said at the bottom of the source code:
Do you know why this might happen?  And what, if anything, can I do to fix it?
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: CMS MS site very slow to load

Post by kermit »

SusanN wrote: na tra dr y.com

My client has let me know that his site is loading very slowly and was wondering if there's anything that can be done to improve the situation.  Just now when I loaded the site, this is what it said at the bottom of the source code:
Do you know why this might happen?  And what, if anything, can I do to fix it?
that is a sign of an overloaded server... and when you (or client) choose a host that offers ""unlimited"" hosting for less than 6 bucks a month, what else would you expect? stay away from these types of hosts and others that offer insane amounts of resources for unbelievably low rates ('hundreds' of gigs of disk space, hundreds of gigs or even terabytes of bandwidth for ~$10 or less, like godaddy, 1and1, ipower, etc; even the reputation of hosts like site5 and hostgator are doing down the drain due to overselling and overcrowding). a host simply cannot provide the resources of a whole, entire server (or more) for that little money and actually deliver... the headaches and hassles of a cheap host aren't worth saving a few bucks a month... not when your (or your clients') business depends upon it...

you can use a tool such as phpsysinfo to check your server's cpu load, memory usage, etc... or the following UDT will provide load averages and uptime on linux servers:

Code: Select all

//GET SERVER LOADS
$loadresult = @exec('uptime');
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs);

//GET SERVER UPTIME
$uptime = explode(' up ', $loadresult);
$uptime = explode(',', $uptime[1]);
$uptime = $uptime[0].', '.$uptime[1];
$data .= "Server Load Averages $avgs[1], $avgs[2], $avgs[3]\n";
$data .= "Server Uptime $uptime";

echo $data;
call the UDT "uptime" and then insert at the end of your template (or use {uptime} in a page's content) to get something like:



you can also take the above code, wrap it inside of php tags and stick it in a separate php file on the server and browse to it... (this adds output of phpinfo(); underneath)

Code: Select all

<?php
//GET SERVER LOADS
$loadresult = @exec('uptime');
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs);

//GET SERVER UPTIME
$uptime = explode(' up ', $loadresult);
$uptime = explode(',', $uptime[1]);
$uptime = $uptime[0].', '.$uptime[1];
$data .= "Server Load Averages $avgs[1], $avgs[2], $avgs[3]\n";
$data .= "Server Uptime $uptime";
echo '<p style="text-align:center;margin-bottom:1.5em">'.$data.'</p>';
?>
<?php phpinfo(); ?>

your options are basically:


  * complain to the current host in hopes they might actually care and do something to improve things;
  * try my full page caching mod, including using the {static_stylesheet} tag or manually exporting and linking to static css files;
  * switch to a better host.
Last edited by kermit on Thu Jul 24, 2008 5:46 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
User avatar
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm

Re: CMS MS site very slow to load

Post by SusanN »

Thank you for your reply and for the info. 
Post Reply

Return to “CMSMS Core”