eztc script weird behavior and error

Author Message

Massimiliano Bariola

Wednesday 21 September 2005 4:08:54 am

hi

while running eztc to compile tpls for corporate design, I get that standard siteaccess is compiled instead .. and then eztc crashes.

any idea of why this happens and how to fix it ? I don't think it should go out of memory.

./bin/php/eztc.php -s corporate

Compiling in design standard
...................................................................... 10.39%
...................................................................... 20.77%
.................................PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 40 bytes) in /usr/local/apache_prodigi/htdocs/beta.prodigiweb.it/3.7/lib/eztemplate/classes/eztemplateelementparser.php on line 598
Allowed memory size of 33554432 bytes exhausted (tried to allocate 34 bytes)

Kristian Hole

Thursday 22 September 2005 12:18:18 am

You have a memorylimit in your CLI(commandline) version of php. If you increase the memorylimit, or set it to -1 it should work. eztc sometimes needs lots of memory..

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Massimiliano Bariola

Thursday 22 September 2005 1:53:51 am

ok, increasing the memory limit should be no problem. but is it right fot eztc to start compiling the standard siteaccess?

thanks

Daniele P.

Thursday 22 September 2005 2:02:14 am

See
http://ez.no/community/bugs/eating_ram_template_compiler

You need around 70MB to compile standard, base and admin design at the same time.

You can run it multiple time util it finish without errors.

Massimiliano Bariola

Thursday 22 September 2005 2:54:17 am

Hi Daniele,

I upped memory to 128M. unfortunately it seems that eztc.php keeps compiling the same templates over subsequent iterations. i.e: keeps recompiling the standard templates even if I call it for corporate siteaccess. Now it runs out at half-way admin instead of standard, but ... issue not solved anyway. from docs, it would seem it should not recompile exixting templates. yet ...... it does.

Daniele P.

Thursday 22 September 2005 3:20:30 am

Ahh!

It seem that php 4.4.0 has some troubles with memory limit enabled. I got a lot of Segmetation fault running eztc

$ ./bin/php/eztc.php
Compiling in design standard
[..]
............................................ 100.00%
Compiling in design base
..........
Fatal error: Allowed memory size of 15728640 bytes exhausted at /example/php44/php4-4.4.0/main/output.c:435 (tried to allocate 40961 bytes) in /srv/web/www.example.it/web/lib/ezutils/classes/ezphpcreator.php on line 510
<div class="view-full">
<div class="class-fo[Thu Sep 22 12:16:48 2005] Script: './bin/php/eztc.php'
---------------------------------------
/example/php44/php4-4.4.0/main/output.c(315) : Block 0x0A1841D0 status:
Beginning: Overrun (magic=0x0A18A610, expected=0x7312F8DC)
End: Unknown
---------------------------------------
Allowed memory size of 15728640 bytes exhausted at /example/php44/php4-4.4.0/Zend/zend_execute_API.c:399 (tried to allocate 0 bytes)

If I have the time I will try to do more investigation.

Massimiliano Bariola

Thursday 22 September 2005 3:31:02 am

Hi,

I haven't run into segfault problems with my 4.4.0, but do let me know if you find something more, this could be something to watch for.

tia!

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