havenswift-hosting Posted February 9, 2017 Share Posted February 9, 2017 We have a limit on most servers of 256 MB per process and dont limit the total account - cheap hosting companies do things like this so they can squeeze more accounts on each server ! There is still no guarantee that you wont hit memory issues (although I cant remember the last time anyone reported an issue when hosted with us) especially if processing HUGE images taken straight from a modern large pixel camera. If you would like to chat about moving across then happy to do so off the forums Quote Link to comment Share on other sites More sharing options...
bobdonkey Posted February 9, 2017 Author Share Posted February 9, 2017 OK thanks. Quote Link to comment Share on other sites More sharing options...
bobdonkey Posted February 11, 2017 Author Share Posted February 11, 2017 So my web host helped me fix this. He said that CC was limiting the memory usage somewhere. He added ini_set('memory_limit', '256M') to ini.inc.php and this has resolved it. So where and why is Cubecart restricing memory usage? Thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 11, 2017 Share Posted February 11, 2017 As of CC610, the statement in ini.inc.php: ini_set('memory_limit', '128M'); // Increase Memory Limit has been removed. From the comment, it can be inferred that at one time, and that this coding decision had not been reviewed for a long time, hosting accounts were very miserly in default resources. Quote Link to comment Share on other sites More sharing options...
bobdonkey Posted February 11, 2017 Author Share Posted February 11, 2017 It is mostly my fault however since I have some large images. I am writing some code to resize the whole lot which will avoid this problem and speed up the site. Thanks Quote Link to comment Share on other sites More sharing options...
bobdonkey Posted February 13, 2017 Author Share Posted February 13, 2017 Just to close this off, I have now resized all of my images, and memory usage has gone down significantly, pretty much halved. So all sorted, thanks. 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.