Help! How to improve performance (eZ = slow)

Author Message

Andreas Widerøe Andersen

Friday 17 December 2004 4:56:33 am

Hi,
I set up an eZ site a few months back. The site runs on a FreeBSD 4.7 Stable 800mhz/512mb server with plenty of diskspace. I use Apache 1.3.27, MySQL 3.23.54 and PHP 4.3. eZ version 3.3-2 (3.3).

My problem is that the site is extremly (!) slow. When I make a request for a page, the response comes first after perhaps 6-7 seconds.

Try it here: http://www.stoff.tv/

I was hoping someone could give me some help here. Suggestions on how to improve performance is highly appreciated.

Thanks!
/Andreas

Hans Melis

Friday 17 December 2004 6:14:00 am

Hi Andreas,

From what I've read in the past, slow performance on *BSD systems is caused by stat() calls whenever a file is accessed. Since one eZ publish page has quite a lot of include, a lot of stat() calls take place.

The number of stat calls depends on the "depth" of your eZ publish installation in the directory tree. There is a stat call for every level in the directory tree (or for every directory if you wish). Example: /opt/software/web/ezpublish/sites/www.stoff.tv/

That makes at least 7 stat calls (6 directories + the file itself) for a file, and even more for files in subdirectories.

The best thing you can do is put your eZ publish installation directly under the root (Example: /www.stoff.tv ). This will reduce the number of stat calls for any file.

hth

Hans
http://blog.hansmelis.be

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 19 2025 04:24:45
Script start
Timing: Jan 19 2025 04:24:45
Module start 'layout'
Timing: Jan 19 2025 04:24:45
Module start 'content'
Timing: Jan 19 2025 04:24:46
Module end 'content'
Timing: Jan 19 2025 04:24:46
Script end

Main resources:

Total runtime0.9008 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 590.4453152.6406
Module start 'layout' 0.00530.0026 743.085939.4766
Module start 'content' 0.00780.8900 782.5625521.3750
Module end 'content' 0.89790.0029 1,303.93758.1250
Script end 0.9007  1,312.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3440160.0002
Check MTime0.00130.1469160.0001
Mysql Total
Database connection0.00080.087610.0008
Mysqli_queries0.851594.5214540.0158
Looping result0.00060.0671520.0000
Template Total0.865896.120.4329
Template load0.00220.241120.0011
Template processing0.863695.864120.4318
Template load and register function0.00020.025610.0002
states
state_id_array0.00100.110410.0010
state_identifier_array0.00270.299420.0013
Override
Cache load0.00170.1870180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.066520.0003
Fetch class attribute name0.00140.155730.0005
XML
Image XML parsing0.00110.123320.0006
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00190.2111150.0001
String conversion0.00000.000940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs