Fatal error - memory size exhausted

Author Message

Marko 1473

Tuesday 30 November 2004 2:37:01 pm

Hi all,

I've just finished the installation of eZpublish (plain, english) and
everything went without problems.

However, when I tried to access plain/plain_admin I get the following
errors respectively:

- Plain:

Fatal error: Allowed memory size of 12582912 bytes exhausted
(tried to allocate 12 bytes) in
$HOME/htdocs/lib/ezutils/classes/ezphpcreator.php on line 489
Fatal error: eZ publish did not finish its request

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

- Plain_admin:

Fatal error: Allowed memory size of 12582912 bytes exhausted
(tried to allocate 39 bytes) in
$HOME/htdocs/lib/eztemplate/classes/eztemplateelementparser.php on line 466
Fatal error: eZ publish did not finish its request

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

I have the following system:
eZpublish 3.4.4
Linux 2.4.20-30.7
MySQL 4.0.20
PHP 4.3.8

Any ideas why is this happening?

Kind regards,
Marko

Balazs Halasy

Tuesday 30 November 2004 2:55:27 pm

Hi,

You should try increasing the memory limit in php.ini. Look for "memory_limit". It is also possible to set it to unlimited.

Balazs

Bruce Morrison

Tuesday 30 November 2004 11:03:05 pm

Hi Balazs

I think the recommended memory limit of 12Mb needs to be increased.

> It is also possible to set it to unlimited.
While this is true but the setting is there for a purpose, it stops php programms from using all your memory and grinding your server to a halt. This is a possibily if you set this to unlimited. Not something I'd recommend is done on a production server :)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Marko 1473

Wednesday 01 December 2004 2:42:21 am

What if I don't have access to php.ini? Is there another way to fix this? And what is a a reasonable value for memory_limit?

Thanks.

Ɓukasz Serwatka

Wednesday 01 December 2004 2:47:33 am

Hi,

You can ask for help administrator which has access to php.ini. I recommend set memory_limit to 24MB.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marko 1473

Wednesday 01 December 2004 5:33:56 am

Thanks for your replies.

Unfortunately, web host support won't change the settings at all as the web site in on the shared server. Of course, I can (for the huge price) get a dedicated server :-(

Any other options/recommendations?

Balazs Halasy

Wednesday 01 December 2004 8:23:37 am

How about this:

Try to turn off the template compiler (also maybe some of the caching mechanisms). Clear all caches and attempt to load the page.

Allman

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 19 2025 00:27:01
Script start
Timing: Jan 19 2025 00:27:01
Module start 'layout'
Timing: Jan 19 2025 00:27:01
Module start 'content'
Timing: Jan 19 2025 00:27:02
Module end 'content'
Timing: Jan 19 2025 00:27:02
Script end

Main resources:

Total runtime0.8642 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0391152.6406
Module start 'layout' 0.00550.0040 740.679739.4766
Module start 'content' 0.00950.8528 780.1563677.3750
Module end 'content' 0.86230.0018 1,457.531316.1406
Script end 0.8641  1,473.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3812160.0002
Check MTime0.00150.1703160.0001
Mysql Total
Database connection0.00060.068410.0006
Mysqli_queries0.786691.0214730.0108
Looping result0.00100.1166710.0000
Template Total0.828295.820.4141
Template load0.00230.264220.0011
Template processing0.825995.577720.4130
Template load and register function0.00020.026610.0002
states
state_id_array0.00120.143510.0012
state_identifier_array0.00100.112920.0005
Override
Cache load0.00210.2387590.0000
Sytem overhead
Fetch class attribute can translate value0.00100.110640.0002
Fetch class attribute name0.00210.2487100.0002
XML
Image XML parsing0.00170.196640.0004
class_abstraction
Instantiating content class attribute0.00000.0026110.0000
General
dbfile0.00100.1186300.0000
String conversion0.00000.001140.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs