Using php Accelerator in eZ

Author Message

Milan Gothe

Saturday 11 March 2006 9:17:02 pm

Hello guys!

How can we use php accelerator in eZ for better performance?

Kåre Køhler Høvik

Saturday 11 March 2006 11:48:16 pm

Hi

We recommend the latest stable version of APC - http://pecl.php.net/package/APC

Kåre Høvik

Veselin Penchev

Friday 28 April 2006 11:51:52 am

Hi,

We use turck-mmcache on our page.
The change in speed was obvious.
/the server is Debian-Linux , ez 3.4/

André R.

Friday 28 April 2006 12:01:24 pm

if you are using Turck, you might want to test out http://eaccelerator.net/ witch is based on turck.
While turck haven't been updated in 2-3 years, eaccelerator are still improving their code.

but both Turck and Eaccelerator should be a better choice then apc, as APC is only a php cacher.

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

Theodoros Papageorgiou

Friday 12 May 2006 1:35:48 pm

I use eaccelerator 0.9.5 beta, php-4.4.2 for about two months on my server without any problems.

WEBWiZ
Web Development
http://www.webwiz.gr

Simon Lynch

Tuesday 06 June 2006 6:19:45 am

We have been using APC (on FreeBSD 5.4, Apache 2.0) for quite a while and things were more or less OK. We think we have hit some limits (probably a recent code build which added and extended templates) and so have the problem of increasing cache memory. This makes the apaches grow and seems to be slower.

We have been trying to exclude some of the cached scripts we are generating using the filters in APC and cannot make it work (at all). Just wondering if anyone has tried this and, if so, they can post the filter expression they have been using (as well as the rest of the php.ini directives for APC they are using). I would post ours, but I am not sure they are really going to help anyone - given we have had to turn the thing off as it kept blowing up and will have a very, very slow server until we work out how to fix this.

I guess some instructions on APC optimisation would be of benefit for anyone using EZ and this accelerator for a large implementation. The benefits are there and APC means that EZ can be implemented under traffic without exploding servers.

Simon Lynch

Wednesday 07 June 2006 2:01:13 am

We have come to the conclusion that the best way of avoiding APC cache overload is to filter out the scripts in the EZ file cache (for us this is a lot of cached template-blocks and other bits and pieces). This means that APC caches the main EZ scripts and seems to work pretty well. We are still running out of allocated space, but probably need to increase it and tweak some of the other settings.

We are using the following directive in php.ini:

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

We could not get APC to accept more than one filter, it seems to ignore sequential comma-separated filters for us, even though we have seen some examples of other people making them work in forums.

Tony Wood

Wednesday 07 June 2006 12:43:56 pm

Hi,

We use APC and have found it to be reliable.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Kim Johansen

Wednesday 07 June 2006 1:15:09 pm

If you need good performance, eaccelerator is better then APC. Its also importent to think about other things, like mysql and apahce.

mysql: innodb with socket is faster than myisam with socket or tcp/ip. caching is also very importent.
apache/php: php as a module is faster then static.

--
Med vennlig hilsen / Best regards

Kim Johansen - WebDeal AS
Teknologiveien 22 - 2815 Gjøvik - NORWAY
Phone: +47 61 13 16 50 - ICQ: 262860894
E-mail: kim@webdeal.no - URL: www.webdealhosting.com

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Paul Borgermans

Wednesday 07 June 2006 2:48:56 pm

I also like eAccelerator more (performance), but OK, I'm Belgian just as Bart, currently the main developer.

Both accelerators are a bit fragile with respect to the long-term development horizon. Let's see how the open source paradigm works here

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Linh Vu

Thursday 08 June 2006 1:01:35 am

I'm using eAccelerator for PHP 4.4.

PHP6 (which will work with ezPublish 4.0) will have a built-in opcode cache, I believe, so that will cancel the need for a 3rd party accelerator.

If I had more time, I would write less code.

Vjeran Vlahovic

Wednesday 21 June 2006 6:36:48 pm

Hi all!

I am also using eAccelerator but wondering how to setup eaccelerator.shm_size parameter. Default value for this is 16 MB and it is probably to low...

Should eaccelerator.shm_size="128" be enough? Or even more? I run several ez installations on dedicated machine with 1 GB of RAM.

http://www.netgen.hr/eng

Vjeran Vlahovic

Friday 23 June 2006 7:28:10 am

Here's one article about comparison of APC and eAccelerator: http://www.ipersec.com/index.php?q=en/bench_ea_vs_apc&page=0%2C0

Also, today I have found out that it's better not to have Zend Optimzier (i need the encoder) along with the eAccelerator at the same time (from the eAccelerator trouble shooting doc):

eAccelerator is has been reported to work with Zend Optimizer's loader. Zend Optimizer must be installed after eAccelerator in php.ini so it's loaded after eAccelerator. If you don't use scripts encoded with Zend Encoder then we do not recommend to install Zend Optimizer with eAccelerator, it won't give you any extra performance.

http://www.netgen.hr/eng

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:30:37
Script start
Timing: Jan 19 2025 04:30:37
Module start 'layout'
Timing: Jan 19 2025 04:30:37
Module start 'content'
Timing: Jan 19 2025 04:30:38
Module end 'content'
Timing: Jan 19 2025 04:30:38
Script end

Main resources:

Total runtime1.2616 sec
Peak memory usage4,096.0000 KB
Database Queries105

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 590.4063152.6406
Module start 'layout' 0.00600.0025 743.046939.4766
Module start 'content' 0.00861.2514 782.52341,006.8203
Module end 'content' 1.26000.0016 1,789.343828.1484
Script end 1.2616  1,817.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2859160.0002
Check MTime0.00140.1111160.0001
Mysql Total
Database connection0.00110.086610.0011
Mysqli_queries1.162292.11811050.0111
Looping result0.00130.09981030.0000
Template Total1.233697.820.6168
Template load0.00200.159220.0010
Template processing1.231697.616120.6158
Template load and register function0.00020.016510.0002
states
state_id_array0.00050.040510.0005
state_identifier_array0.00180.146620.0009
Override
Cache load0.00180.1453650.0000
Sytem overhead
Fetch class attribute can translate value0.00090.0681110.0001
Fetch class attribute name0.00190.1516200.0001
XML
Image XML parsing0.00710.5598110.0006
class_abstraction
Instantiating content class attribute0.00010.0045210.0000
General
dbfile0.00380.3025530.0001
String conversion0.00000.000640.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
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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: 45
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs