Forums / Install & configuration / Which PHP accelerators are supported?

Which PHP accelerators are supported?

Author Message

Nick Haralambopoulos

Saturday 12 May 2007 4:03:54 am

Hello my fellow ezpublishers. I've search the documentation and the forums but I can not find which php accelerators are compatible with ezpublish. Recently I installed XCache 1.2.0 accelerator in my Mac OS 10.4.8 Intel server with apache 1.3.33, PHP 4.4.4 and ezp 3.7.6.
I have problems with it. I can not create folders and move nodes in the admin interface. Also xcache in not recognised as an php accelerator. Is there a special setting I have to do in ezp?
Does anyone know any other php accelerator that works without problem?

Andreas Kaiser

Sunday 13 May 2007 6:25:02 am

I've been using eaccelerator without problems. (even with Suhosin installed)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Frédéric DAVID

Sunday 13 May 2007 11:56:22 am

I've been using eaccelerator too ttwithout problems.

You can find some informations there : http://pwet.fr/blog/eaccelerator_avec_ez_publish

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Andreas Kaiser

Monday 14 May 2007 3:58:38 am

In this post there is also a example configuration for eaccelerator.

http://ez.no/community/forum/setup_design/improving_ez_publish_environment_and_performance

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Will Collins

Tuesday 15 May 2007 9:10:18 am

We have been using APC 3.0.14 (current version) and get an average cache hit rate around 250 cache requests/second. Our miss rate is under 1%.

If your server is memory limited, you will want to include the following filter:

apc.filters = "-cache.*\.php"

Otherwise you may run into a runaway memory problem. This filter, added to apc.ini will tell APC to not cache EzPublish cache files (creating a caching of cached files which can quickly eat up precious memory and send your server to using swap space on the hard drive (very, very, slow).

However, if memory is not a concern (6GB or higher), than you don't need to worry about filtering.

I tried all the other PHP accelerators and found them either too unstable or not well maintained (security wise) for our high volume servers.

Also keep in mind that you will see a better speed improvement if you tweak Apache and MySQL than you will by using a PHP accelerator.

André R.

Thursday 17 May 2007 2:55:38 pm

Did a quick test with and without APC on my machine (Debian 4, Pentuim M 1.86):

With template and view cache off:
wo/APC ~0.98 - 1.21 s
w/ APC ~0.67 - 0.89 s

With template and view cache on:
wo/APC ~0.21 - 0.39 s
w/ APC ~0.09 - 0.13 s

For large sites you will probably want to use eaccelerator since it's also storing op code cache to disk.

BTW: I have seen way lower times with the PHP5 port..

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

eZ debug

Timing: Jan 18 2025 16:11:00
Script start
Timing: Jan 18 2025 16:11:00
Module start 'content'
Timing: Jan 18 2025 16:11:00
Module end 'content'
Timing: Jan 18 2025 16:11:01
Script end

Main resources:

Total runtime0.8363 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.9688180.8203
Module start 'content' 0.00620.7040 769.7891696.6953
Module end 'content' 0.71030.1259 1,466.4844341.0625
Script end 0.8362  1,807.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.01001.1992210.0005
Check MTime0.00150.1784210.0001
Mysql Total
Database connection0.00080.098910.0008
Mysqli_queries0.748689.51892090.0036
Looping result0.00240.28112070.0000
Template Total0.811397.020.4056
Template load0.00180.216620.0009
Template processing0.809496.792020.4047
Template load and register function0.00020.025110.0002
states
state_id_array0.00100.117410.0010
state_identifier_array0.00080.100320.0004
Override
Cache load0.00160.1885360.0000
Sytem overhead
Fetch class attribute can translate value0.00190.223060.0003
Fetch class attribute name0.00180.219590.0002
XML
Image XML parsing0.00210.247060.0003
class_abstraction
Instantiating content class attribute0.00000.0043100.0000
General
dbfile0.00260.3088400.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs