how to improve EZ performances ?

Author Message

manu aushana

Monday 18 February 2008 8:38:30 am

I know this subject has been treated many times.

I look everywhere on this site, and I still have some latency problems.

I installed eaccelerator, I configured php.ini and site.ini.append as requested.

My problem is the time taken by "template processing" (in the debug output), it takes several seconds for each page.

I would like to know what can I tune to decrease this.

For information, I have ez 3.9.3, apache2, php4.4.

Mark Marsiglio

Monday 18 February 2008 8:44:13 am

If you have the option, using eZ Publish 4.0 on PHP 5 seems to make a huge difference for me.

If not, TemplateCompile and template caching settings are where you probably need to be looking. There is also cache-block settings.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

André R.

Monday 18 February 2008 8:47:10 am

You should specify a lot more if you want any suggestions (OS, OS version, file system, CPU, RAM, Hard drive speed, Memory for PHP, memory for eaccelerator .... ).

So beside upgrading to eZ Publish 4.0, here are some in depth performance discussions:
http://ez.no/developer/forum/setup_design/improving_ez_publish_environment_and_performance
http://ez.no/developer/forum/general/ez_publish_performance_optimisation_faq

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

manu aushana

Monday 18 February 2008 9:18:38 am

Thank you for answering.

Unfortunately, I can't it upgrade it to EZ 4.0.

here is my hardware configuration
OS: debian 4.0 etch
CPU : xeon dual core
RAM : 1Go
Memory for PHP : 256
memory for eaccelerator : 32
(I have read that this value should not exceed the value in proc/sys/kernel/shmmax)

here's my site.ini.append.

[ContentSettings]
TranslationList=
ViewCaching=enabled

[DebugSettings]
DisplayDebugWarnings=disabled
DebugOutput=enabled
DebugRedirection=disabled

[TemplateSettings]
Debug=disabled
ShowXHTMLCode=disabled
ShowUsedTemplates=disabled
TemplateCompile=enabled
TemplateCache=enabled
TemplateOptimization=enabled

[OverrideSettings]
Cache=enabled

I didn't catch the difference between putting this file in override and in siteaccess.

Mark Marsiglio

Monday 18 February 2008 9:35:12 am

Those settings look right.

Check two more things - in Setup > System Information see if the php accelerator is recognized as being installed by eZ Publish.

Also, in Setup > Ini Settings select sitei.ini and see if the settings shown match what you posted. This is just to make sure that there is not a settings override that is changing them.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Xavier Serna

Tuesday 19 February 2008 12:54:00 am

Hi manu,

be sure that the <ezroot>/var directory is writeable for the user running the webserver, perhaps the cache files can't be saved and thus your system always have to process the templates.

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

manu aushana

Tuesday 19 February 2008 1:54:35 am

I checked these three things, everything is set as you told me.

I think that some parts of the project are not well coded by the previous developpers.

Thank you again for answering.

André R.

Tuesday 19 February 2008 2:00:29 am

Do you experience the same problem in admin (also after installing ezjaxx extension)?
If not, how many sql fetches does your front end produce? (see debug output).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

manu aushana

Tuesday 19 February 2008 2:21:21 am

I have the same problem in the admin part (ezjaxx is not installed).

"template processing" is about 3,5 sec.

manu aushana

Tuesday 19 February 2008 5:45:34 am

Can you tell me if this is normal:

in my folder /var :
/cache
- /codepages
- /content
- /ezodf
- /ini (only this one is filled)
- /packages
- /template
- /process (empty)
-- /tree
- /texttoimage
- /translation

/ezwebin
- /cache
-- /glossary
-- /override
-- /packages
-- /template
--- /compiled (filled)
-- /translation
- /log
- /storage

/log

/storage

where can I customized the cache settings ?

Xavier Dutoit

Wednesday 20 February 2008 10:55:37 am

Hi,

The 3.5 seconds is on the first load after the clear cache or everytime ?

(unfortunately ok on the first load, way too high on the subsequent onces)

http://www.sydesy.com

manu aushana

Thursday 21 February 2008 3:04:40 am

It is 3,5 sec everytime for the admin part.
On front, the pages take between 2 and 8 sec to display (everytime).

I can see in the debug output that it is "template processing" and not "template load" which takes most of the time.

If someone knows why ...

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 01:21:04
Script start
Timing: Jan 19 2025 01:21:04
Module start 'layout'
Timing: Jan 19 2025 01:21:04
Module start 'content'
Timing: Jan 19 2025 01:21:05
Module end 'content'
Timing: Jan 19 2025 01:21:05
Script end

Main resources:

Total runtime0.8691 sec
Peak memory usage4,096.0000 KB
Database Queries90

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1484152.6250
Module start 'layout' 0.00550.0031 741.773439.4453
Module start 'content' 0.00860.8590 781.2188776.1484
Module end 'content' 0.86760.0014 1,557.367224.1563
Script end 0.8691  1,581.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3927160.0002
Check MTime0.00130.1471160.0001
Mysql Total
Database connection0.00080.091810.0008
Mysqli_queries0.774889.1457900.0086
Looping result0.00100.1110880.0000
Template Total0.840696.720.4203
Template load0.00180.206420.0009
Template processing0.838896.508720.4194
Template load and register function0.00020.019110.0002
states
state_id_array0.00070.082810.0007
state_identifier_array0.00090.105320.0005
Override
Cache load0.00180.20501040.0000
Sytem overhead
Fetch class attribute can translate value0.00090.098850.0002
Fetch class attribute name0.00130.1456160.0001
XML
Image XML parsing0.00220.257450.0004
class_abstraction
Instantiating content class attribute0.00000.0042180.0000
General
dbfile0.00160.1786340.0000
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
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
20content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/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: 50
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs