Forums / Developer / eztc script weird behavior and error

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!

eZ debug

Timing: Jan 18 2025 11:02:35
Script start
Timing: Jan 18 2025 11:02:35
Module start 'content'
Timing: Jan 18 2025 11:02:36
Module end 'content'
Timing: Jan 18 2025 11:02:36
Script end

Main resources:

Total runtime0.9772 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.8516180.8281
Module start 'content' 0.00690.8376 769.6797628.1172
Module end 'content' 0.84450.1326 1,397.7969341.0547
Script end 0.9771  1,738.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4545210.0002
Check MTime0.00150.1558210.0001
Mysql Total
Database connection0.00090.089210.0009
Mysqli_queries0.892191.28612080.0043
Looping result0.00210.21882060.0000
Template Total0.945996.820.4729
Template load0.00210.218820.0011
Template processing0.943796.572320.4719
Template load and register function0.00010.009210.0001
states
state_id_array0.00100.106210.0010
state_identifier_array0.00130.137020.0007
Override
Cache load0.00180.1892490.0000
Sytem overhead
Fetch class attribute can translate value0.00140.143640.0004
Fetch class attribute name0.00110.115690.0001
XML
Image XML parsing0.00130.138140.0003
class_abstraction
Instantiating content class attribute0.00000.0022120.0000
General
dbfile0.00520.5282340.0002
String conversion0.00000.000530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs