Long waiting time to access

Author Message

Christophe MAILLARD

Monday 30 May 2011 8:17:01 am

Hello,

When accessing the home page of our website we have a long waiting time.

With FireBug, we can see that :

0 - DNS resolution
0 - Connection
0 - Sending
5.89s - Pending
140ms - Reception

We have the following architecture :
2 web front-end servers with eZ Publish 4.4.0
1 database server - Oracle 10G RAC Cluster Mode

When we surf on the site, the times are no better, exemple :

0 - DNS resolution
0 - Connection
0 - Sending
3.63s - Pending
109ms - Reception

Debug mode has been activated, but we have not yet identified the problem;
Do you have any ideas?
Thank you

Christophe

H-Works Agency

Monday 30 May 2011 8:36:16 am

Hello,

Have you followed all the necessary configuration to put an ezpublish website in production ?

PHP accelerator, ViewCaching, Template Caching, Template Compile...Etc

EZP is Great

Christophe MAILLARD

Monday 30 May 2011 9:01:12 am

Hello,

All the modules mentioned were activated 

Christophe

H-Works Agency

Monday 30 May 2011 9:14:50 am

What i can say is that a classical "blog" website with those configuration options enabled should perform well but if you have a "big" website (lot of contents, ezfind solr indexation, complex layouts) then extra settings must be applied depending on the performance problem.

To resume i'd need more information on the site setup if basic optimization isn't solving the problem.

EZP is Great

Damien Pobel

Monday 30 May 2011 1:14:42 pm

Hi Christophe,

first, you have to make sure that most caches are enabled. If it's the case, then you should make sure that your pages are correctly optimized. The usual way of doing this in eZ Publish is too use the cache-block template function to put some parts of the page in cache to decrease the number of SQL queries needed to generate a page. This function has to be used in the pagelayout.tpl or the templates included in it because by default, there's no cache strategy for those templates. You can see the number of SQL queries in debug output table. it's commonly admitted that 10 SQL queries or less to generate a page already in cache (ie in a second hit) is a good result.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Christophe MAILLARD

Tuesday 31 May 2011 1:52:57 am

Hi,

After checking with my team, some settings were configured incorrectly.

We changed the following configuration file : var/www/html/settings/override/site.ini.append.php

  • ViewCaching=enabled
  • TemplateCompile=enabled
  • TemplateCache=enabled
  • DevelopmentMode=disabled

Now, we have a better response time when accessing the home page.

0 - DNS resolution
0 - Connection
0 - Sending
2.58s - Pending
157ms - Reception

Damien, we'll look at your recommendations and will keep you informed.

Thanks !

Christophe

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 01:59:55
Script start
Timing: Jan 18 2025 01:59:55
Module start 'layout'
Timing: Jan 18 2025 01:59:55
Module start 'content'
Timing: Jan 18 2025 01:59:56
Module end 'content'
Timing: Jan 18 2025 01:59:56
Script end

Main resources:

Total runtime0.8366 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0313152.6406
Module start 'layout' 0.00690.0030 740.671939.4844
Module start 'content' 0.01000.8251 780.1563618.2344
Module end 'content' 0.83510.0015 1,398.390616.1484
Script end 0.8365  1,414.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4061160.0002
Check MTime0.00140.1726160.0001
Mysql Total
Database connection0.00150.174210.0015
Mysqli_queries0.763891.2974690.0111
Looping result0.00080.0951670.0000
Template Total0.800995.720.4004
Template load0.00230.275120.0012
Template processing0.798695.459720.3993
Template load and register function0.00030.032610.0003
states
state_id_array0.00110.136110.0011
state_identifier_array0.00090.102020.0004
Override
Cache load0.00210.2477610.0000
Sytem overhead
Fetch class attribute can translate value0.00070.080030.0002
Fetch class attribute name0.00140.169080.0002
XML
Image XML parsing0.00090.113330.0003
class_abstraction
Instantiating content class attribute0.00000.002390.0000
General
dbfile0.00220.2600230.0001
String conversion0.00000.001240.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.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: 9

Time used to render debug report: 0.0002 secs