eZ 3.5.2 - help with speed-up tweaks?

Author Message

Craig Hirsch

Tuesday 24 May 2005 3:11:38 pm

Hi folks,

We've just launched a new site to production, and I'm looking for some help in further optimizations I may not yet have performed. Page load times are excellent (.075 seconds) with all of the below features enabled, plus eAccelerator installed (on a P4 3.2ghz), and cache blocks in strategic spots:

[ContentSettings]
TranslationList=
ViewCaching=enabled
CachedViewModes=full;sitemap;pdf;popup_generic
PreViewCache=enabled
PreCacheSiteaccessArray[]=<ourpubsitename>

[TemplateSettings]
NodeTreeCaching=enabled
TemplateCache=enabled
TemplateCompile=enabled

Here's what I need help with. Whenever new content is published, page load times go way up. Whenever I make template changes, clear cache and recompile templates, page load times are HORRIBLE the first time a given page is loaded. Think 6-10 seconds -- way too slow.

What else can I do that I haven't already done to speed up this first page load before everything is cached? I've thought of resorting to using some sort of Web site spidering tool to crawl the whole site, load all the pages, and get it over with.

Any other suggestions?

--
chirsch{AT}gmail{d.t}com

kracker (the)

Tuesday 24 May 2005 3:33:47 pm

Craig,

From what I've heard in the forums and seen first hand is that a cronjob that runs an automated agent (program) to crawl your site regularly is the best way to date to achieve your goal.

Either a static list of wget commands for each key url or better yet an automated feature rich agent like <b>httrack</b> to crawl the entire site.

Tho, I expect with the (<i>soon</i>) upcoming release of 3.6 that will all change as static regeneration of content could be less visible to the average user?

cheers,
//kracker

<i>eminem : i'm back (instrumental)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Bruce Morrison

Tuesday 24 May 2005 11:30:37 pm

Hi Craig

What version of eZ are you using? Versions prior to 3.52 had issues with the precache generation.

When you make changes to the templates have you tried compiling the templates by hand using the bin/php/eztc.php script?

I suspect that you will encounter the same issues even if you spider the site.

Do you have a URL that we can look at?

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

Craig Hirsch

Wednesday 25 May 2005 5:09:41 am

Hi Bruce,

I'm using eZ 3.5.2. I do compile all templates using eztc.php after template changes. I've built shell scripts that call eztc.php for my user and admin siteaccesses. Of course this helps, but I'm still stuck with long initial load times.

Part of the problem is that I am doing a LOT of dynamic image resizing. Much of the processing that happens initially after a cache clear is image resizing -- there are two pages in particular that take over a MINUTE to generate thanks to about 30 images per page that the system must resize.

Last night I implemented a workaround fix using HTTrack from the command line. I have this tool spidering the whole site on command down to five levels depth. In tests, it completely solves the problem after about 20-25 mins or so, so I'll be running it after cache clears, and have set it up to run as a once-a-day scheduled process too.

Note... I couldn't get wget to work for me in a spidering capacity... it seems not to like eZ's urls and I couldn't figure out a solution.

--
chirsch{AT}gmail{d.t}com

Bruce Morrison

Thursday 02 June 2005 4:51:13 pm

Hi Craig

Have you turned on debugging and looked at the timings table?

When you say "I am doing a LOT of dynamic image resizing", do you mean that you are not using the eZ publish image resizing?

While I haven't looked at the code that handles the images and cache clearing, I'd doubt that the image variations would be cleared from the system each time the cache is cleared.

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

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 22:31:59
Script start
Timing: Jan 18 2025 22:31:59
Module start 'layout'
Timing: Jan 18 2025 22:31:59
Module start 'content'
Timing: Jan 18 2025 22:32:00
Module end 'content'
Timing: Jan 18 2025 22:32:00
Script end

Main resources:

Total runtime0.9209 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.9219152.6250
Module start 'layout' 0.00880.0034 740.546939.4609
Module start 'content' 0.01220.9071 780.0078618.0859
Module end 'content' 0.91930.0016 1,398.093816.1563
Script end 0.9209  1,414.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3744160.0002
Check MTime0.00150.1595160.0001
Mysql Total
Database connection0.00090.094610.0009
Mysqli_queries0.848792.1546650.0131
Looping result0.00100.1086630.0000
Template Total0.888296.420.4441
Template load0.00250.274820.0013
Template processing0.885696.165720.4428
Template load and register function0.00010.011010.0001
states
state_id_array0.00120.133710.0012
state_identifier_array0.00080.090920.0004
Override
Cache load0.00220.2364430.0001
Sytem overhead
Fetch class attribute can translate value0.00050.054130.0002
Fetch class attribute name0.00160.169880.0002
XML
Image XML parsing0.00160.176830.0005
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00130.1430300.0000
String conversion0.00000.001040.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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