Page 1 of 1

Website is running really slow help SOLVED

Posted: Mon Nov 15, 2010 5:39 pm
by nyandres
My website is running at a very slow speed.  somtimes it takes about a second to load a webpage, but other times it can take 5 seconds, and one time it took 30 seconds.  

I checked on firebug while loading the products page, and it shows that most of the time is not spend requesting, receiving, but instead on waiting.


By the way, also, how can I get all the paths to follow the url using the subdomain, instead of the file tree. The homepage uses the subdomain, while the other pages use a file tree.

This is my first CMSMS site, all help is appreciated.
Thanks

Re: Website is running really slow help

Posted: Mon Nov 15, 2010 5:53 pm
by Wishbone
Turn on debug mode in config.php and test out your site. It will list every action and the time it took to execute it. I used to have mySQL slowness, where some queries were taking a second or more each.

Re: Website is running really slow help

Posted: Mon Nov 15, 2010 6:18 pm
by Wishbone
Ahh.. GoDaddy. That's your issue ;)

I just transferred my site to Arvixe (CMSMS's hosting partner) from GoDaddy and no longer have speed issues on my site.

GoDaddy's SQL access was very slow for a couple of years, but has improved a bit in the last several months. There is no use filing a support ticket. They will tell you that you need to optimize your code no matter what proof you show them that they are slow. One thing you might try is creating a new database and move your data over. You might land on a faster server. Once that server is loaded up, create another database and migrate again. :(

Re: Website is running really slow help

Posted: Mon Nov 15, 2010 7:09 pm
by nyandres
Should I ask them to switch?

I don't even know if they are using go daddy. They would not allow me to create the database myself, or ftp connections myself.  I had to ask someone everytime.

Sometimes pages take over thirty seconds to load.

What should I do? The website uses a lot of images, but not for it to take even 4 seconds to load, and its taking over 30 seconds manytimes.

Any hosting company and package you guys recommend?

Re: Website is running really slow help

Posted: Mon Nov 15, 2010 7:16 pm
by Wishbone
I was able to tell that the site was using GoDaddy by entering in your domain at http://whohoststhis.com .

I'm happy with Arvixe. My pages are usually generated in around 0.2 seconds (as seen with debug on), plus the price was right and support is fast.

You can try creating an account with any hosting company you prefer, upload the files for the site and test. This will give you ammo to go to the owner and suggest that they switch.

Re: Website is running really slow help

Posted: Tue Nov 16, 2010 12:34 am
by SMF
General suggestions for "slow sites". Presuming you've already checked for errors using debug mode and made certain that the site setup is optimal for CMSmadesimple (no errors or warnings during install)

First check the host, ISP and routing using traceroute (under *nix - I "think" tracert is the Windoof version)
eg.

Code: Select all

someone@work:~$ traceroute cmsmadesimple.org
traceroute to cmsmadesimple.org (207.192.69.189), 30 hops max, 40 byte packets
 1  ipcop.sunnyside.home (192.168.0.1)  0.529 ms  0.567 ms  0.617 ms
 2  * * *
 3  * * *
 4  pr.iv.at.e (private)  158.252 ms 10.176.80.2 (10.176.80.2)  160.262 ms  161.130 ms
 5  10.176.81.22 (10.176.81.22)  178.079 ms  180.141 ms  308.128 ms
 6  10.176.81.130 (10.176.81.130)  310.120 ms  310.520 ms  310.494 ms
<snipped>
In the above example any slowness of cmsmadesimple site should be blamed on my wireless connection provider.

Second - check your computer and browser by using another (5 dozen Firefox plugins and various av scanners and Windoof update will skew your perceptions).

When you've ruled out your everything between your screen and the host:-
1. If you have shell access, check for error messages in the logs
2. Check your access logs for site traffic which might be affecting your results

If you still haven't found the problem try 1x1 testing:-
1. Do some pages load slower than others?
2. Are the slow pages always slower? Try at least four loads with your browser cache, and debugging turned off, at two different times of day (peak and off-peak)

Analyze your test results.
If slow pages are consistently slow, what makes those pages different to other pages?

Hint: it'll most likely be images or database queries if your site caching policy is consistent.

1. Are your images loaded with height and width set?
2. Are those the correct sizes?
3. Are the slow pages pre-loading images in the background?
4. Are you using double quotes to hold strings without spaces?

If you still haven't found the problem:-
1. Disable queries 1x1 on the slow pages and observe the result.
2. Download a slow page and check the total size.
3. Validate the HTML, CSS, and javascript.

When you think you've found the problem - prove it to yourself with more tests.

Tips to reducing the problem before it occurs:-
If possible check your host before signing up (see first step) use one of their hosted sites.
the worse the host the more noise they make. Never take hosting suggestions from people who think brown makes a nice colour scheme ;-p
Develop locally using the Spartan technique - if you can make a site responsive on a resource starved machine, it should work well on production hosting.

Re: Website is running really slow help

Posted: Tue Nov 16, 2010 12:40 am
by calguy1000
Though your information is good, and correct.  we already know the problem... or the majority of it (though I've seen some people do some really dumb things with templates, pages, and module calls and then complain that their site was slow because of it, I don't think it's the "biggest" problem this time).

It's godaddy.  They oversell, and use remote hosts for their databases that are again oversold/overtaxed/have-a-slow-connection/whatever-you-want-to-call it.

The issue has come up time and time again.

Re: Website is running really slow help

Posted: Tue Nov 16, 2010 1:30 am
by Wishbone
Luckily I only have one remaining client on GoDaddy (http://portlandkarting.com). It's actually running pretty fast most of the time. I have a theory that I've complained so many times that they put me on a "complainer's server" that isn't overbooked. :)

Re: Website is running really slow help

Posted: Tue Nov 16, 2010 4:12 pm
by nyandres
Well, I moved the website to the host where I have my portfolio to test.  It runs WAY faster. Although Im am also using the new 1.9 on my host, so that may have something to do with it. I think it was indeed the host. The speed went from taking sometimes 30secs, to taking under 1sec to 1.5 or so on the heavier pages.

I convinced the company owner to switch hosts. Which host do you guys recommend to run CMSMS?  It ran great on 1and1, but since people also complain about 1and1, I feel maybe im just lucky, and maybe it wont work well when he uses 1and1 as well.

Are there any hosts that specialize in CMSMS, where CMSMS will run better

Thanks

Re: Website is running really slow help

Posted: Tue Nov 16, 2010 7:28 pm
by Wishbone
nyandres wrote:Are there any hosts that specialize in CMSMS, where CMSMS will run better.
Arvixe is CMSMS's hosting partner..

http://www.arvixe.com/cms_made_simple_hosting


Here's my test install with this hosting company: http://crane.arvixe.com/~wishbone/1.9

Very fast.