DiscoDan Posted April 16, 2014 Share Posted April 16, 2014 After upgrading to 5.2.9 (now 5.2.10) the website is going very slowly. The site is on a VPS with no other sites hosted on it. Memory is 512Mb but only about 5Mb free. Is there a minimum spec for Cubecart on VPS? Thanks Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 16, 2014 Share Posted April 16, 2014 Hi There is nothing in 5.2.9 or 5.2.10 that would cause a CubeCart website that was running quickly to suddenly start running slowly - if it was fine before the upgrades and now isnt then there are other factors at work. There is also no minimum spec for CubeCart specifically for a VPS - CubeCart doesnt care ! While VPS's and cloud based computing is the "latest" thing there are any number of problems that can happen when using this type of hosting that dont exist when running running on Shared Hosting (or at least on a decent Shared Hosting package that is configured correctly and isnt massively oversold which many are these days). 512 Mb of RAM is the very bare minimum that a VPS can be run on and we would never supply a VPS with this small amount of RAM - you have to remember that the Operating System, MySQL and other applications also need to use this memory before any can be allocated to your application and 512 Mb is too little. Have you tuned MySQL at all as this will be a very quick way to use up all of your RAM and if a system starts swapping out then it will very quickly grind to a halt and eventually probably crash. VPS systems are great if you can afford to to purchase enough RAM and are an expert at configuring LAMP based systems or have a managed service but then you still need to know enough to be able to request certain things be done. VPS / Cloud based systems really come into their own if you can (and need) to able to dynamically allocate additional nodes / resources in busy periods and especially if your traffic is geographically spread and you can increase resources based in UK / Europe during busy times there and switch to US / Australasia when busy there. Otherwise to be honest a good Shared Hosting package is far better and if you outgrow that then take your own dedicated server Thanks Ian Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 16, 2014 Share Posted April 16, 2014 From what version of CubeCart did you upgrade? Quote Link to comment Share on other sites More sharing options...
DiscoDan Posted April 16, 2014 Author Share Posted April 16, 2014 It was 4.4.2 I think. I've been tweaking the config of Apache and MySQL and added memcached to the server. It's freed up memory and the server load has improved enormously, but the response is still a bit sluggish - maybe 5 to 10 seconds load time per page. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 16, 2014 Share Posted April 16, 2014 Good that you have been tweaking Apache and MySQL and that it has made a big difference but a 5 to 10 second page load is still far higher than it should be so how long was it taking before ! Is this slowness across all pages on the site or in specific areas - you hadnt said previously that you had upgraded from V4 and the database structure is different and there are a number of queries that are not optimised within the V5 database so depending on how big some of teh tables currently are, this can make a big difference to response times and memory usage within MySQL Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 16, 2014 Share Posted April 16, 2014 In admin, Store Settings, Advanced tab, enable Debug mode and enter your IP address (www.whatismyip.com). On a page load, there will be a grey area with some diagnostic info and time elapsed figures. This info is gathered by using some PHP commands, so the results won't include time taken for some external events (starting up PHP as CGI, page delivery, etc). You might also want to checkout Firefox with the Firebug add-on. You can get a chart of when each part of the page arrives: the initial txt/html, each resource (images, javascript files, etc), and each subsequent call to a third-party site by the browser (jQuery files from a CDN, etc). Quote Link to comment Share on other sites More sharing options...
masterunix Posted May 5, 2014 Share Posted May 5, 2014 Did you enable caching in the admin inside of cubecart? Also did you enable caching inside of your hosting environment like cpanel/directadmin/plesk ? If performance issues are still there, then i recommand to upgrade your hosting package or find another hoster. I also played with a lot of settings/servers and performance is very important for any webshop. I am sure the problem you are having is not Cubecart related even though you upgraded to version 5. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.