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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Memory leak in GridField?

Go to End



Community Member, 5 Posts

8 January 2014 at 5:18am

I'm able to reproduce this on SS3.1.1 and SS3.1.2 so far, on linux/apache2 and on a mac running MAMP.
I've tried php 5.3 and php 5.4, with APC enabled & disabled.

1. pick a getCMSFields (Page or modeladmin) without a GridField
2. insert echo(memory_get_usage());
3. reload the according CMS interface several times, memory usage stays consistent (or bounces between 2 vals)
4. add a basic GridField
5. repeat step 3, the memory usage consistently climbs.

In my case, it's climbing by an increased amount on each load (9k, 12k, 13k).
With this happening on every interface with one or more gridfields, memory will run out quickly for a heavily used CMS.

Any solutions? Can you reproduce this?