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.