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?

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 15:55:40
Script start
Timing: Jan 18 2025 15:55:40
Module start 'layout'
Timing: Jan 18 2025 15:55:40
Module start 'content'
Timing: Jan 18 2025 15:55:41
Module end 'content'
Timing: Jan 18 2025 15:55:41
Script end

Main resources:

Total runtime0.6986 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.8984152.6094
Module start 'layout' 0.00850.0028 741.507839.3984
Module start 'content' 0.01120.6858 780.9063712.8672
Module end 'content' 0.69700.0015 1,493.773420.2031
Script end 0.6985  1,513.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5648160.0002
Check MTime0.00140.2015160.0001
Mysql Total
Database connection0.00100.136610.0010
Mysqli_queries0.628790.0021780.0081
Looping result0.00070.0985760.0000
Template Total0.660894.620.3304
Template load0.00190.267420.0009
Template processing0.658994.327120.3295
Template load and register function0.00010.013310.0001
states
state_id_array0.00220.319510.0022
state_identifier_array0.00530.760820.0027
Override
Cache load0.00160.2340430.0000
Sytem overhead
Fetch class attribute can translate value0.00080.111050.0002
Fetch class attribute name0.00110.1584110.0001
XML
Image XML parsing0.00180.262450.0004
class_abstraction
Instantiating content class attribute0.00000.0032130.0000
General
dbfile0.00220.3209300.0001
String conversion0.00000.001540.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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