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!

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 18 2025 02:52:54
Script start
Timing: Jan 18 2025 02:52:54
Module start 'layout'
Timing: Jan 18 2025 02:52:54
Module start 'content'
Timing: Jan 18 2025 02:52:54
Module end 'content'
Timing: Jan 18 2025 02:52:54
Script end

Main resources:

Total runtime0.1618 sec
Peak memory usage4,096.0000 KB
Database Queries84

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.2969152.6563
Module start 'layout' 0.00700.0031 741.953139.5156
Module start 'content' 0.01010.1502 781.4688834.0625
Module end 'content' 0.16030.0015 1,615.531322.3984
Script end 0.1618  1,637.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.0280160.0002
Check MTime0.00130.8204160.0001
Mysql Total
Database connection0.00161.019010.0016
Mysqli_queries0.084051.9060840.0010
Looping result0.00070.4085820.0000
Template Total0.133982.720.0669
Template load0.00251.563320.0013
Template processing0.131481.164020.0657
Template load and register function0.00010.090910.0001
states
state_id_array0.00100.628320.0005
state_identifier_array0.00110.703730.0004
Override
Cache load0.00211.2967340.0001
Sytem overhead
Fetch class attribute name0.00120.7356120.0001
Fetch class attribute can translate value0.00040.261850.0001
class_abstraction
Instantiating content class attribute0.00000.0131130.0000
XML
Image XML parsing0.00231.420050.0005
General
dbfile0.00140.8608410.0000
String conversion0.00000.005640.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.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs