Forums / Install & configuration / Ez 3.7.2 and PHP-accelerating

Ez 3.7.2 and PHP-accelerating

Author Message

Steph A

Tuesday 24 January 2006 11:57:29 pm

I was just wondering what kind a PHP-accelerator to use for 3.7.2 that supports PHP 4.4.1?

I am currently running FreeBSD 5.4 without any accelerators - and the speed is painfully slow. 10 sec loadtime on a dedicated server... :)

Ɓukasz Serwatka

Wednesday 25 January 2006 12:03:03 am

Hi Steph,

I have been working with IonCube, APC and eAccelerator. The last one had the best performance. But your 10s is really to much, I suspecting that problem is somewhere else. PHP Accelerator can help, but don't expect performance boost from 10s to 0,12s.

Take a look at this topic:

http://ez.no/community/forum/general/ez_speed_optimisation_faq/re_ez_speed_optimisation_faq__14

http://ez.no/community/forum/install_configuration/ez_publish_performance

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Steph A

Wednesday 25 January 2006 1:45:11 am

Thanx for the suggestion. I have fixed some server issues - and now the loadtime is about 1.4 sec ... still not too fast. Havent got too many nodes either, and the templatecode is pretty simple....

I had someone to install a php-accelerator, but and they said that there where some version conflict, and that I could not use the accelarator with php 4.4.1...

I think they tried to install the accelerator from www.php-accelerator.co.uk ... is there any problem getting a accelerator to php 4.4.1?

Any to recommend?

Thanx..

Paul Borgermans

Wednesday 25 January 2006 2:58:42 am

Try eaccelerator, slightly better performance:

http://eaccelerator.net/

I installed (compiled) and tested on 3.7.2 with PHP 4.4.0 (64 bit)

hth

--paul

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

Sebastian Picklum

Thursday 26 January 2006 12:29:13 pm

I hope the following information is still valid: with FreeBSD Version 5.4:
Please notice that FreeBSD is a performance killer itself, since it does a stat()-call for on every file access for every directory level. e.g. /home/youruser/public_html/ezpublish/index.php would result in 5 stat() calls.
You can boost performance by placing ezpublish direct under the root directory or by using Linux as server os.

Regards

Sebastian

sp@php.net

Xavier Dutoit

Thursday 26 January 2006 11:51:53 pm

Hi,

I know that Gabriel is into BSD and from what I heard, he's happy with the performance, at least better than 10 seconds to load a page ;)

Don't know if it's related but if I'm right he uses XFS.

Gabriel, over to you...

X+

http://www.sydesy.com

Gabriel Ambuehl

Friday 27 January 2006 12:08:51 am

Actually, I had sub 1 second load times on FreeBSD 4.11 without eaccelerator and sub 0.2s with eaccelerator. There should be accelerators in the ports tree IIRC. (I think latest eaccelerator supports PHP 4.4)

Visit http://triligon.org

Steph A

Sunday 29 January 2006 7:23:15 am

Thanx for all inputs guys. I still use FreeBSD 5.4 - but managed to get the loadtime down to 0.14 sec with eAccelerator :D

Now I`m happy... :)

If anyone was wondering about hard/software:
Apache/2.1.4 (FreeBSD) PHP/4.4.1
AMD Sempron(tm) 2400+ (686-class CPU) 1666.49- MHz RAM: 239,94 MB

Gabriel Ambuehl

Sunday 29 January 2006 7:31:31 am

That machine ss awfully low on RAM. 512 or more (preferably 1G+) wouldn't hurt at all under load.

But the times seem ok.

Visit http://triligon.org

Steph A

Sunday 29 January 2006 7:50:29 am

Yes I know its low on ram, but for now I just use this as develop-space. When I go live I will upgrade it as needed :)

But still, 0,14sec and often lower is not too bad - or what?

Gabriel Ambuehl

Sunday 29 January 2006 7:53:30 am

That's rather good, actually.

Visit http://triligon.org

eZ debug

Timing: Jan 18 2025 11:04:35
Script start
Timing: Jan 18 2025 11:04:35
Module start 'content'
Timing: Jan 18 2025 11:04:36
Module end 'content'
Timing: Jan 18 2025 11:04:36
Script end

Main resources:

Total runtime1.0306 sec
Peak memory usage4,096.0000 KB
Database Queries226

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.9453180.8281
Module start 'content' 0.00790.8828 769.7734780.2344
Module end 'content' 0.89070.1397 1,550.0078349.3203
Script end 1.0305  1,899.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3919210.0002
Check MTime0.00150.1488210.0001
Mysql Total
Database connection0.00110.108210.0011
Mysqli_queries0.935890.80042260.0041
Looping result0.00240.22882240.0000
Template Total0.993096.420.4965
Template load0.00220.214620.0011
Template processing0.990896.139520.4954
Template load and register function0.00020.014610.0002
states
state_id_array0.00160.150810.0016
state_identifier_array0.00190.183420.0009
Override
Cache load0.00210.1990540.0000
Sytem overhead
Fetch class attribute can translate value0.00150.148770.0002
Fetch class attribute name0.00170.1631140.0001
XML
Image XML parsing0.00300.288770.0004
class_abstraction
Instantiating content class attribute0.00000.0026140.0000
General
dbfile0.00550.5346420.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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs