Forums / Setup & design / eZ and Oracle RAC

eZ and Oracle RAC

Author Message

Christophe MAILLARD

Tuesday 07 June 2011 6:40:50 am

Hello,
We use eZ Publish with an oracle RAC cluster.
By load testing, we found that for every page loaded a session was opened by Oracle.
Thus, if 10,000 different pages are accessed, we have 10000 open sessions on Oracle.
This configuration does not seem optimal, as soon as our test load exceeds 10000 pages or 15000, we have a timeout.
Do you have any recommendations?

Thanks

Christophe

Robin Muilwijk

Saturday 18 June 2011 12:36:00 pm

Hi Christophe,

I'll ping someone that I think has experience with using eZ on Oracle. In the mean time, could you post here which eZ version you are using, maybe some basic information on the setup in general (infrastructure in short) and also the Oracle version? That might help help in answering your question.

Thanks and regards, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Gaetano Giunta

Sunday 19 June 2011 3:24:54 pm

Hi

By default, eZ opens a database connection per page. As soon as the page is done, the connection is closed (ie: connections are not persistent).

You can change the configuration to have eZ use persistent databaseconnections. This way the same connection can be reused by page B after page A has finished.

Please note that in general using persistent connections has a bit of the opposite effect of what you want to achieve here (reduce the number of connections opened to the db at the same time), as if you have 1000 concurrent apache processes serving a page at the same time, what you get is 1000 db connections that will persist, ie. stay open for a while. At least in non-persistent mode they will be closed very quickly.

Do note also that this is not by design of eZ Publish: this is the way that php works (ie. there is not a real db connection pool that can be managed in explicit ways).

To limit the number of db connections, it is recommended to lower the number of Apache processes that can be active at any given time (MaxClients in httpd.conf). There are good chances that with 10000 running Apache processes your webserver is swapping heavily anyway ( since eZP uses 10MB of ram per page in the best case scenario, 10000 pages being served means 100GB ram installed on the server plus space for OS and buffers/cache). And the swapping can be the real cause for slowness, rather than problems with the db.

Last but not least, two things you can do to tune oracle for a massive number of connections:

- use the MTS server config (old school trick)

- use the DRCP config (only if you have an oracle 11db)

both of those are done in oracle configuration (server-side or client-side), they do not involve changes in eZP

Principal Consultant International Business
Member of the Community Project Board

eZ debug

Timing: Jan 17 2025 22:52:20
Script start
Timing: Jan 17 2025 22:52:20
Module start 'content'
Timing: Jan 17 2025 22:52:20
Module end 'content'
Timing: Jan 17 2025 22:52:21
Script end

Main resources:

Total runtime0.7478 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.6094180.8516
Module start 'content' 0.00740.6177 768.4609591.1250
Module end 'content' 0.62510.1226 1,359.5859336.7734
Script end 0.7478  1,696.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5588210.0002
Check MTime0.00150.2072210.0001
Mysql Total
Database connection0.00080.103110.0008
Mysqli_queries0.671989.84731960.0034
Looping result0.00230.31341940.0000
Template Total0.714795.620.3574
Template load0.00210.276520.0010
Template processing0.712795.297720.3563
Template load and register function0.00010.019610.0001
states
state_id_array0.00140.192810.0014
state_identifier_array0.00140.192820.0007
Override
Cache load0.00180.2356280.0001
Sytem overhead
Fetch class attribute can translate value0.00180.237540.0004
Fetch class attribute name0.00180.234550.0004
XML
Image XML parsing0.00150.197840.0004
class_abstraction
Instantiating content class attribute0.00000.001950.0000
General
dbfile0.00310.4170350.0001
String conversion0.00000.000930.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs