Forums / General / EZ performance

EZ performance

Author Message

Marko Žmak

Thursday 30 September 2004 6:14:52 pm

I've setup EZ on a server and it works VERY slowly. Even with pages that are cached.

In the trace of the system calls for the apache process that runs the EZ I get this:

- there are 101800 stat() calls for 860 different files

That means that EZ tries to opens every file 118 times in average. I doubt that this is really necessary. Anyone knows what's the problem?

P.S. The same EZ site works pretty much O.K. on another server.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Björn Dieding@xrow.de

Friday 01 October 2004 12:28:22 am

Is this server a freebsd?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

andreas spahr

Saturday 02 October 2004 2:08:24 am

I suppose, that you didn't changed the owner of the var/ directory, and therefore the running webserver coudn't write any data into the var directory.
run e.g.:
chown -R wwwrun.www var/

if your webserver user and group looks like this:)

P A

Saturday 02 October 2004 6:14:18 am

have the same problem. Just installed EZ on my localhost (Mac 10.3) and it does run very slowly. The var/ directory does have read write permissions for Owner, Group and Others. Is there anything else I can do to improve speed?

Marko Žmak

Sunday 03 October 2004 3:14:36 pm

I've changed the permissions, it improved the performance but it's still a little bit slow. The apache process consumes more than 50% CPU time (somethimes even 90%), and it's not a hardvware problem, the server is powerfull enough.

How can I speed it up?

Thx.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Sunday 03 October 2004 3:26:38 pm

P.S. The server is on Linux (Debian I think).

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Sunday 03 October 2004 7:05:47 pm

Howdy

Turn on debugging in site.ini (override or siteaccess version)

[DebugSettings]
DebugOutput=enabled

and look at the table right at the end (Time accumulators:). It will give you a break down of all the various internal actions (database queries, template process etc) performed by eZ publish. If it's not evident from this what is taking up the time, post it here for feedback.

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

P A

Saturday 09 October 2004 10:49:16 am

The main load seems to be from Template processing, with around 33% - however the indicated total script times don't always tie in with how long the page takes - sometimes only being about half the actual value.

A couple of other things that grab my attention:

Error:
Invalid class identifier in subTree() classfilterarray, classID : feedback_form

Warning: PHP
strpos(): Empty delimiter. in /Library/WebServer/Documents/ezpublish-3.4.2/var/plain/cache/template/compiled/node_list-61c9eca413b9b39c6bc783824e2e1015.php on line 37

Does that make sense?

eZ debug

Timing: Jan 18 2025 11:43:20
Script start
Timing: Jan 18 2025 11:43:20
Module start 'content'
Timing: Jan 18 2025 11:43:21
Module end 'content'
Timing: Jan 18 2025 11:43:21
Script end

Main resources:

Total runtime0.7357 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.5313180.8594
Module start 'content' 0.00570.6048 768.3906717.9219
Module end 'content' 0.61050.1252 1,486.3125340.4688
Script end 0.7357  1,826.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5588210.0002
Check MTime0.00150.2034210.0001
Mysql Total
Database connection0.00070.101110.0007
Mysqli_queries0.649888.32392150.0030
Looping result0.00220.29842130.0000
Template Total0.705295.920.3526
Template load0.00240.322120.0012
Template processing0.702995.533220.3514
Template load and register function0.00010.013710.0001
states
state_id_array0.00090.120810.0009
state_identifier_array0.00110.147120.0005
Override
Cache load0.00200.2681430.0000
Sytem overhead
Fetch class attribute can translate value0.00200.278460.0003
Fetch class attribute name0.00110.1482110.0001
XML
Image XML parsing0.00220.293160.0004
class_abstraction
Instantiating content class attribute0.00000.0032130.0000
General
dbfile0.00260.3537410.0001
String conversion0.00000.000730.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs