site runs really slow

Permalink 1 user found helpful
Hello,


I'm hoping that someone can help me figure out why our site is so slow. We recently scrapped our old html site that we had for years in order to use c5, and the c5 shopping cart. At this point we have really don't want to have to start over again with another platform, especially after all the work it took to get the ecommerce program to import our inventory. The site is still needing work, but the basic layout is up, the only problem is that it loads really slow, and sometimes times out completely. Any help would be greatly appreciated.

the site ishttp://apoprecords.com

 
tomreitz replied on at Permalink Reply
tomreitz
looks like you have caching enabled on the site. Have you tried disabling or clearing the cache?
hostco replied on at Permalink Reply
hostco
Are you on shared hosting or a VPS?

There are a few things you can try depending on that.
madeforspace replied on at Permalink Reply
madeforspace
Hi

Had a look at your site and it seems fine, I see you have not got the cache turned on which can be a good thing sometimes.
You might want to check out this article by Andrew which I always find usefulhttp://andrewembler.com/posts/5-easy-ways-to-speed-up-a-concrete5-s...

Nice site by the way :)

Hope that helps

Alex
zoinks replied on at Permalink Reply
Just to confirm my experience: the site is slow. I clicked the "label" link in your top menu and counted slowly to 15 before the page changed. It was so slow that I looked for the spinning icon in my Chrome browser's tab to make sure I had in fact clicked the link.
madeforspace replied on at Permalink Reply
madeforspace
Now that's odd, I just looked again at the home page and got a 3.48s load for all the page.
Blog got me 4.01s.

So many things that could be different between us and the server that it is difficult to pin down what could be causing the problem.
mkly replied on at Permalink Reply
mkly
Hello,
First off, really cool site.

Secondly, I have been doing some research lately on concrete5 speed issues. There is definitely something extra strange with your site. The Label page is coming up very slowly.

Most of the stuff I'm including below is probably a little advanced for you at this stage, but I love a chance to log into your server and run some tests. I'm sure I can get it running much faster or at least discover the origin of the problem. I wouldn't charge you for this. I would be doing this to learn more about some of the speed issues people are reporting.

If you could send me a private message with you account details I would be more than happy to log into your server and troubleshoot the issue.

To send a private message you can click here.
http://www.concrete5.org/profile/-/58696/#emailMember...

Best Regards,
Mike

-------

Some things I have been doing lately on this issue.

I did some specific benchmarking here

http://www.concrete5.org/community/forums/documentation_efforts/get...

I created a howto on a specific php extension here

http://www.concrete5.org/documentation/how-tos/developers/speed-up-...

I developed a package for logging problem sql queries here.

http://www.concrete5.org/community/forums/customizing_c5/quick-data...
mkly replied on at Permalink Reply
mkly
I also noticed you installed Miser. Although this will help a site show up in a browser faster it will not fix the main issue you are having which is often referred to as the load time of the "first byte".

There are some json requests to /apoprecordsblog/. Is it possible that there are some php curl requests occurring to create the initial page? For example, is there any php addons or custom code that is pulling data from another page and placing it into your page?
dlntx9 replied on at Permalink Reply
Thanks everyone for taking a look. I have experimented with the cache, and currently have it disabled.

I actually had already implemented the suggestions from the Andrew Embler site before posting to the forum. They did seem to help, but the site still seems sluggish to me.

The site is hosted by dreamhost on a shared server.

Mike, I have sent you a private message and look forward to working with you. In regards to your questions about the json requests, I am using the wordpress for concrete5 block. The blog page on my site apoprecords.com/blog pulls posts that are created in wordpress. I have wordpress installed athttp://apoprecords.com/apoprecordsblog...

On the front page I have it set to display the most recent blog post using the wordpress block. The products being displayed on the main front page and in the shop page are being pulled/displayed using the ecommerce product block. Im not sure about other curl requests. I do use the ecommerce importer, and have a cronjob run the script every 30 minutes. The script takes inventory files that are sent from my inventory management database to a folder on my server and imports any new products or modifies any existing products that are in the file.
MrGrowBizz replied on at Permalink Reply
MrGrowBizz
dlntx9, Pulled up your site and pages loaded rather rapidly. A few stumbles here and there such as selecting the photos tab, but overall I thought the speed was reasonable at usually about 1 second.
mkly replied on at Permalink Reply
mkly
I know. I just logged into the site and turned on caching.
zoinks replied on at Permalink Reply
ha, that is WAY faster than last time. Initial page load took a few seconds, all additional clicks including "Label" were near instant.

What cache settings did you use? There's a few different settings in there.
mkly replied on at Permalink Reply
mkly
Well right now MISER and page caching is both running which from what I've read in the MISER docs and by @Phallanx shouldn't run together. Once I get the ftp I'll disable Miser and see how the speed is.

The Page caching I'm using right now is "Enabled if blocks allow it, unless specified at page level."

I'm guessing with the site we are talking about here the slowness may have in part been do to the wordpress addon making curl requests.

I wrote and benchmarked some things about cachin here
http://www.concrete5.org/community/forums/documentation_efforts/spe...
fastcrash replied on at Permalink Reply
fastcrash
whahahaaaa.. mlky you are really savior from 8s to almost 1s load time,
hope it's long last - dont error please :)
miser is ON too, dont know what the impact with this dual combine, let them be friend, so far is no erno found.

i add this too, dont know exactly this piece, i found somewhere
define('CACHE_FRONTEND_OPTIONS', serialize(array('automatic_cleaning_factor' => 0)));


i add all that phallanx htaccess sugest too

nb: where exactly the cache file store? in the client or server?
Mnkras replied on at Permalink Reply
Mnkras
the default cache location is /files/cache
mkly replied on at Permalink Reply
mkly
Ok to sum this thread up.

Dashboard->Site Settings->Speed Settings
Basic Cache: Enabled
Full Page Caching: "Until Manually Cleared"

Disabled Miser.

The Wordpress Addon is installed and I feel that it is making curl requests which without caching have to run every page load which is a big part or the slowness. But I would not consider that to be the only part.

Performance is improved.

I'm not going to say what host as that isn't something that I feel I have the right to disclose, but it is a shared host with a good reputation. It's not a super cheap one. They are using mod_pagespeed as well.

Anyhow, one more test case to argue about ;)
ChristiaanB replied on at Permalink Reply
ChristiaanB
If you're using Page cache you might want to try out the following fix
https://github.com/concrete5/concrete5/pull/228/files...
Just replacing the cache.php with the one shown there might give you a huge performance boost.

On our shared acceptance server page requests went down from 15 seconds to 200ms. This is because our acceptance server uses a network mounted filesystem so file IO access is quite hefty.
zoinks replied on at Permalink Reply
Is this free to use? Just a modified bit of the original C5 code?

Which versions of C5 is it good for?

I wonder if this is how Pair Networks is set up. They have some fileserver set up I don't understand.
ChristiaanB replied on at Permalink Reply
ChristiaanB
This is only good for any version below 5.5 because it has been included in 5.5
fastcrash replied on at Permalink Reply
fastcrash
hi cristian,
i cannot copy from link you provide. i new to github
i copy from this one
https://github.com/christiaan/concrete5/blob/f3d07756628d23da604db87...

it is no different isn't? - i will test it, hope it can decrease the firstbyte lol, hehee
zoinks replied on at Permalink Reply
ha, I'm glad you mentioned that because I would have just copied the first link. Yeah, it looks like your link is the full code; the other link is a collection of revisions or something. Not too familiar wit Github myself, but that's what it looks like to me.
fastcrash replied on at Permalink Reply
fastcrash
yes boink-boink, i feel it's much faster and the average load page time more stable, it's not more than 2 second, and the firstbyte decrease 50%, maybe you can test to make it sure. or it's just me?
zoinks replied on at Permalink Reply
ahem. my name is ZOINKS. ;)
zoinks replied on at Permalink Reply
So, my 5.4 site still seems pretty slow but I see this in the cache.php file:
public $enabled = true; // disabled because of weird annoying race conditions. This will slow things down but only if you don't have zend cache active.


Is this only a concern for those who are using Zend Framework? I had to Google to find out what "zend cache" might be. It's not on my host's server.