Forums / Discussions / Benchmarking eZ: memory consumption for the webservice use case

Tuesday 01 March 2011 6:16:01 am - 6 replies

Introduction

The amount of memory used by the application to render a single page is an important metric to be taken into account when sizing webservers to cope with the desired amount of traffic. In this installment, we explore memory usage by eZ Publish, in the context of a "webservice" page, ie. a page rendering a very simple piece of text in json format. We focus on an aspect outside control of the developer: php files with class definitions.

» Read full blog post

Author Message

Nicolas Pastorino

Tuesday 01 March 2011 7:26:07 am

Nice post Gaetano.

It appears contribution to eZ Publish Community Project will leave some room for performance wizards to apply their magic !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Paul Borgermans

Tuesday 01 March 2011 12:50:31 pm

Interesting Gaetano

On the memory allocation rules: I would add another one: plenty of RAM to cache file system access (var/cache + 500MB OS).

On the refactoring: rather a kernel rewrite as I am advocating for years now ;)

Cheers

Paul

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

Gaetano Giunta

Wednesday 02 March 2011 12:33:17 am

@Paul thanks. I agree that a kernel rewrite is the way to go, iff it actually happens. Holding off incremental improvements for a year or even longer and then getting no new version at all is just frustrating...

Principal Consultant International Business
Member of the Community Project Board

Jean-Luc Nguyen

Thursday 03 March 2011 5:56:44 am

Very interesting article!

I used to automatically include autoload.php, but also found out that it used a lot of memory than including only really used PHP classes. It seems like a simple optimization, but it is actually more than necessary.

JL.

http://www.acidre.com

Maxime Thomas

Monday 14 March 2011 10:24:22 am

I agree on the debug part, it could be improved.

My 2 cents : I would like to see a kind of a main debug handler that will called and will run the different debug handlers.

For example, I need a different debug depending on used device : mobile or web.

Today, it's a kind of mess to have something coherent by overriding the kernel.

It could also be a good opportunity to try new ways of debug (plugin for browsers, headers for FirePHP, etc...)

Did I send you the data I've collected ??? Can't remember.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Gaetano Giunta

Monday 14 March 2011 12:23:37 pm

@maxime fully agree on everything about debug. No, did not get any data

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

eZ debug

Timing: Jan 17 2025 23:51:23
Script start
Timing: Jan 17 2025 23:51:23
Module start 'content'
Timing: Jan 17 2025 23:51:23
Module end 'content'
Timing: Jan 17 2025 23:51:23
Script end

Main resources:

Total runtime0.3112 sec
Peak memory usage4,096.0000 KB
Database Queries221

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 591.6016180.8047
Module start 'content' 0.00690.1632 772.4063839.1719
Module end 'content' 0.17010.1410 1,611.5781345.5781
Script end 0.3111  1,957.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00421.3639210.0002
Check MTime0.00160.5068210.0001
Mysql Total
Database connection0.00080.265810.0008
Mysqli_queries0.218870.32712210.0010
Looping result0.00240.75992190.0000
Template Total0.282490.820.1412
Template load0.00220.716020.0011
Template processing0.280290.042020.1401
Template load and register function0.00010.041110.0001
states
state_id_array0.00180.572120.0009
state_identifier_array0.00120.370230.0004
Override
Cache load0.00200.6307340.0001
Sytem overhead
Fetch class attribute name0.00110.3618120.0001
Fetch class attribute can translate value0.00160.503960.0003
class_abstraction
Instantiating content class attribute0.00000.0081130.0000
XML
Image XML parsing0.00290.927160.0005
General
dbfile0.00270.8747520.0001
String conversion0.00000.001730.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.tplforum_topic/full.tplextension/community_design/design/suncana/override/templates/forum_topic/full.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs