Forums / Install & configuration / Fatal error - memory size exhausted

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

eZ debug

Timing: Jan 18 2025 20:58:33
Script start
Timing: Jan 18 2025 20:58:33
Module start 'content'
Timing: Jan 18 2025 20:58:33
Module end 'content'
Timing: Jan 18 2025 20:58:33
Script end

Main resources:

Total runtime0.1559 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.8359180.8203
Module start 'content' 0.00630.0075 768.6563101.9297
Module end 'content' 0.01380.1420 870.5859533.3281
Script end 0.1558  1,403.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.2812200.0002
Check MTime0.00130.8648200.0001
Mysql Total
Database connection0.00090.587110.0009
Mysqli_queries0.106468.29631410.0008
Looping result0.00120.78611390.0000
Template Total0.141590.810.1415
Template load0.00090.578710.0009
Template processing0.140690.219910.1406
Override
Cache load0.00060.388210.0006
Sytem overhead
Fetch class attribute can translate value0.00080.510610.0008
XML
Image XML parsing0.00030.186810.0003
General
dbfile0.00623.9842200.0003
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs