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