Fatal error: Allowed memory size of 134mb exhausted I have a template in my control panel (technically a plugin, but it's just one template) which is running out of memory:


  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
  to allocate 78 bytes) in
  /var/sites/t/thames-arbitrators.org.uk/craft/app/helpers/ModelHelper.php
  on line 101


In my local dev site, the profiler is giving me the following info:


Time 10.66053s
Memory: 127,544Kb
Total Queries: 381


Is there anything I can do to alleviate this? I've seen the answer to 'PHP Fatal error: Allowed memory size of X bytes exhausted' but there are only two conditionals in this template, it's almost certainly down to the fact that I need to return several hundred entries.

I don't mind posting my template here but there's a big table in it so it's going to make the page super long - let me know which bits you need.
If your plugin is pulling in a lot of data, then most likely you're just bumping into your php.ini file's memory_limit setting.  Try bumping that up to 256M and see if that helps.