Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Memory Limit and SilverStripe 2.2.0-rc3


Reply

4 Posts   13216 Views

Avatar
gakenny

24 November 2007 at 3:33pm Community Member, 153 Posts

Hello,

Has the required memory limit increased with this new version of SilverStripe?

I get the following error when accessing the assets page in the admin area:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 311296 bytes) in /home/XXXX/public_html/sapphire/lang/en_US.php on line 330

And a similar error when tring to flush the site cache.

I believe that some shared hosts will not increase the memory limit beyond 32M.

Cheers,

Gary

Avatar
jam13

25 November 2007 at 11:33am 121 Posts

I've had to up the limit to 64Mb on our servers as the installer failed on 32Mb (trying to allocate 48Mb). Does seem to be a big jump from earlier requirements.

Avatar
Ingo

26 November 2007 at 8:09am Forum Moderator, 801 Posts

The memory-requirements rise constantly with every new class/php-file introduced to the silverstripe framework (they are all included by the ManifestBuilder). its entirely possible that we just cracked the 32M limit - which unfortunately will limit the functionality of many shared hosting environment out there.

we're got a patch in the pipeline (thanks wakeless!) which reduces usage by roughly 50%:
http://open.silverstripe.com/ticket/1823 - slated for 2.2.1 at the moment

Avatar
gakenny

26 November 2007 at 11:46am Community Member, 153 Posts

Hi,

I have increased the memory limit to 64M but I am not sure my host will allow this for too long. Do you think that the extra memory requirements are 'essential'? I do know that other tools manage to site nicely under 12M. Look forward to that patch coming through!

Cheers,

Gary