Template load & processing soooo slow

Author Message

Paul Brandt

Tuesday 04 January 2005 2:47:19 am

Whenever I clear the Template cache, reloading the pages takes 2 timeouts of 30 seconds each. Then the page reoccurs, and the debuginfo says it took 90% of the time (25 s) to load the template (53%) and to process the template (38%).

I'm not sure whether the first two timeouts already do result in stored processing results that are not required to be done anymore during the final, third, access. If so, the amount of processing to be done is really huge. If not, it's quite a coincident that always the third attempt succeeds where the previous two failed.

After succesfull template regeneration, in general page load for the same page takes 4-5 s, debug says template processing takes 66%, rest of the time is consumed by the sql, rest of template actions and cache load. Is this number going to increase with larger, more complicated websites? I can live with 4-5 s response times, but not more.

Anyway, is this an indication of an instable initialisation / configuration? If so, what could be done to address (diagnose and solve) the misconfiguration, or, if not, what can be done to speed this up?

Thanks in advance!

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 18 2025 20:54:38
Script start
Timing: Jan 18 2025 20:54:38
Module start 'layout'
Timing: Jan 18 2025 20:54:38
Module start 'content'
Timing: Jan 18 2025 20:54:40
Module end 'content'
Timing: Jan 18 2025 20:54:40
Script end

Main resources:

Total runtime1.4257 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0313152.6406
Module start 'layout' 0.00510.0025 740.671939.4609
Module start 'content' 0.00761.4164 780.1328399.7422
Module end 'content' 1.42400.0016 1,179.87508.1563
Script end 1.4256  1,188.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2255160.0002
Check MTime0.00130.0944160.0001
Mysql Total
Database connection0.00050.036810.0005
Mysqli_queries1.387497.3160460.0302
Looping result0.00050.0345440.0000
Template Total1.391597.620.6958
Template load0.00230.158720.0011
Template processing1.389397.445120.6946
Template load and register function0.00020.011910.0002
states
state_id_array0.00160.109010.0016
state_identifier_array0.00150.101820.0007
Override
Cache load0.00180.127580.0002
Sytem overhead
Fetch class attribute can translate value0.00060.042410.0006
Fetch class attribute name0.00090.065210.0009
XML
Image XML parsing0.00030.019910.0003
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00210.1443100.0002
String conversion0.00000.000740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs