Hitting memory limit with 64 MB

Author Message

Matthew Carroll

Wednesday 01 November 2006 11:42:40 pm

Any ideas why I'm running out of memory. I have the limit set at 64 MB which I always read was enough:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 575700 bytes) in /eb/users/coin/appdata/ez/var/coin/cache/template/compiled/show_dynamic_content_structure-75f63a77adf5126f75b90ff0678abcab.php on line 2253
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

This then persists across the entire site until I clear caches from the shell, then it works again. Humpf. I really don't have time for problems with ez right now :-(

http://carroll.org.uk

Denis Zatsarinny

Thursday 02 November 2006 8:43:11 am

Hi

64Mb is very low! On our sites with 3000 and more object I should increase a limit up to 512Mb!

Bye.

Xavier Dutoit

Thursday 02 November 2006 9:55:30 am

512 doesn't make any sense, It should be nearly ok ith 64Mb in most of the cases.

Are you trying something special when you memory timeout ?

X+

http://www.sydesy.com

Matthew Carroll

Thursday 02 November 2006 10:38:44 am

Nope, I wasn't doing anything special - just opening nodes 4 levels deep in the tree or for some reason publishing seemed to trigger it too. I thought this was a bug in the odcsm extension, but I deactivated this and the bug recurred in the standard non-ajax csm. I filed a bug report last night, since this particular site isn't big (only 360 nodes so far) and this didn't occur before I last upgraded (running from the 3.8 stable series svn).

http://issues.ez.no/IssueView.php?Id=9319

...I'm not sure where the bug might be though, and I don't have time to dig deeper. (Anyway, I did my share of volunteer late night critical ez-bug hunting already this year ;-)

For now I increased memory_limit to 128M which has "fixed" it, although to be honest I'd rather lower it again. No web page in its right mind should really need more than 64M of RAM to load.

http://carroll.org.uk

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:21:49
Script start
Timing: Jan 18 2025 18:21:49
Module start 'layout'
Timing: Jan 18 2025 18:21:49
Module start 'content'
Timing: Jan 18 2025 18:21:50
Module end 'content'
Timing: Jan 18 2025 18:21:50
Script end

Main resources:

Total runtime0.6649 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1641152.6406
Module start 'layout' 0.00640.0037 741.804739.4766
Module start 'content' 0.01010.6534 781.2813592.3047
Module end 'content' 0.66350.0014 1,373.585912.1484
Script end 0.6649  1,385.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5173160.0002
Check MTime0.00140.2164160.0001
Mysql Total
Database connection0.00090.141710.0009
Mysqli_queries0.601790.4896620.0097
Looping result0.00060.0848600.0000
Template Total0.633895.320.3169
Template load0.00210.319620.0011
Template processing0.631694.994320.3158
Template load and register function0.00010.012810.0001
states
state_id_array0.00100.143210.0010
state_identifier_array0.00060.091620.0003
Override
Cache load0.00190.2789230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.145230.0003
Fetch class attribute name0.00140.211370.0002
XML
Image XML parsing0.00180.264630.0006
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00110.1637280.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs