5.5.1 Memory Usage

Permalink
I'm a long time C5 devotee and have built probably a couple dozen C5 sites over the past few years. Love the platform and know it pretty well.

The last few sites I've built have been with the latest version (5.5.1) and in all of these sites I'm running into intermittent 500 Internal Server errors. Most of the sites are pretty basic (about 10 pages, standard c5 blocks, minimal custom block templates)

I'm thinking it's an issue with the web host. They only offer 256mb of shared memory available to the processor for each hosting account and it looks like C5 is maxxing it out in edit mode on even the most basic of sites. I've asked the hosts to increase the memory available but they have refused as the resources on their shared servers are obviously spread pretty thin. I've been using this hosting company for years, running plenty of different CMS's, Joomla, Drupal, Exponent, Silverstripe, Wordpress installs etc. with no issues, always responsive service etc. so I'm reluctant to move.

I'm kinda answering my own post by typing it out - but is it worth persisting with basic hosting on 5.5.1 or does the upgrade to 5.5.1 mean I need to get a bit more serious about better hosting.

Has anybody else had these memory issues running on shared hosting?

 
Ekko replied on at Permalink Reply
Ekko
C5 offers hosting, and it only makes sense to put a concrete site on a concrete server. At 15 bucks a month the support, and stability pay for themselves.
soupmedia replied on at Permalink Reply
Ok. I agree in principle, but I didn't realise it was only $15 a month.

Are you sure you've got that right? Looking at the hosting plans, they start at $50 a month to be hosted by C5.

While that's not a lot of money, and is no doubt worth it for the level of support alone, I have a hard time convincing some of my clients to triple what they are used to paying for hosting for what they see as just a simple website.

I guess what I'm asking is that with 5.5.1 being such a major update, are their some memory leaks that have been introduced or optimisations still to do that might bring the memory footprint down a little?
Ekko replied on at Permalink Reply
Ekko
It seems prices went up since 2009 "pay us $15/month to host a happy version of concrete5."

However at $45 a month, for unlimited domains, and 5 GB Storage
25 GB Transfer you could really just throw all clients on there, and charge them $5 ? a month depending on how many clients you have. 5 gb storage goes a very long way, and 25 gb of transfers is probably a lot more than they are using now if you look at server stats.

Either way you were right when you stated that you were answering your own question while writing this. You get what you pay for, and it c5 hosting gives a lot of bang for the buck, and is a solution that shouldn't be overlooked. It's also a great launching pad for offering in house hosting as a service.

As to tweaks this may helphttp://www.concrete5.org/marketplace/addons/tinifier/... by 12345J may do something for you, but I am not sure if it would do enough as the hosting you have is on the very low end of the spectrum at 250 mb storage.
soupmedia replied on at Permalink Reply
Sorry I probably wasn't clear, it's 250mb of virtual server ram available for processing. There's plenty of disk storage (10gb). Point taken re: C5 hosting. I did not realise the hosting allowed for multiple domains, that certainly makes it attractive and a much easier sell to my client base.

I don't mean to come off as a cheapskate, and having built a few CMS's from the ground up, I certainly appreciate the work that goes (and has gone) in to C5. As I stated before, I'm a relatively longtime user, I've purchased a lot of blocks, developed a few custom ones and built literally dozens of sites on the same hosting plan without this issue. I genuinely like the product, I was really just querying the need for 256mb server ram at runtime to render pages.
ScottC replied on at Permalink Reply
ScottC
You don't need 256mb for php to go through a full request. It sometimes has issues at 32, but i always run at 64 or 128M devoted.

I would look at filesystem performance instead, and I would also consider trying turning caching off and on, and if they have APC cache available then I would try that caching engine instead of the default filesystem cache.
soupmedia replied on at Permalink Reply 1 Attachment
Thanks, I'll ask the hosts to install APC but I'm not holding out much hope. I've attached resource usage stats for the past 24 hours. You can see the memory usage maxxed out at 512mb between 15:00 and 14:00.

I think I'm gonna move to C5 hosting for new sites.
soupmedia replied on at Permalink Reply
Ok, so I'm building out another very simple site with 5.5.1 and getting the same memory errors - this time with 512mb ram available. The server intermittently fails to download the page_controls_menu_js so I can't edit pages.

If I refresh, sometimes (perhaps 1 out of 3 times) the edit bar comes back, but checking the server logs, the site has been resource limited, after it asked for more than 512mb.

I have disabled caching altogether to see if this helps, but it seems to make no difference.

Can anybody help? Is anyone else having these or similar issues?
Dinie replied on at Permalink Reply
Yep, I'm having the same problem, maxing out my 512MB with no other users on the site.
Clean install.

I don't see why Concrete5 should require 512MB to load any one page on the site.
soupmedia replied on at Permalink Reply
Hi Dinie,

My hosting company installed Cloud Linux recently. I've done a fair bit of
research on this over the past few days and the problem with my host seems
to come from the way Cloud Linux handles memory allocation.
If there are more than a few concurrent requests (eg. ajax calls) each one
of them is allocated a quantity of virtual ram - I think it is whatever is
in your php.ini settings. So in effect, at runtime if your php.ini
specifies 64mb and you have 20 concurrent requests, Cloud Linux tries to
reserve 20 x 64mb which spikes your memory usage and causes the site to
fail.

I've asked my hosts to remove the memory limit on Cloud Linux (as
recommended by the creators of Cloud Linux) and I'm waiting for a response.
This memory limiting is causing lots of people significant hassles, not
just C5, but Wordpress, Joomla et al.

Maybe ask your hosts if they are running Cloud Linux?

Cheers,
Nathan