Forums / Install & configuration / improving performance

improving performance

Author Message

Greg McAvoy-Jensen

Friday 09 January 2004 10:25:59 pm

I need help with just a little more performance tuning. My database is still small (just one product in the shop, still just testing), but the home page still takes 2-5 seconds to process:

Timing points:
Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Module start 'content' 0.0000 sec 1.5819 sec 0.0000KB 0.0000KB
Module end 'content' 1.5819 sec 0.4871 sec 0.0000KB 0.0000KB
End 2.0690 sec 0.0000KB 0.0000KB
Total runtime: 2.0706 sec

Time accumulators:
Accumulator Elapsed Percent Count Average
Mysql Total
Mysql_queries 0.0081 sec 0.3128% 4 0.0020 sec
Looping result 0.0017 sec 0.0665% 3 0.0006 sec
ini_load
Load cache 0.0752 sec 2.8981% 7 0.0107 sec
Template Total 0.4768 sec 18.4% 1 0.4768 sec
Template load 0.0644 sec 2.4796% 1 0.0644 sec
Template processing 0.4098 sec 15.7848% 1 0.4098 sec
Template load and register function 0.0351 sec 1.3524% 2 0.0176 sec
override
Cache load 0.0544 sec 2.0946% 1 0.0544 sec
Total script time: 2.5961 sec

I'm running ezpublish3.3-1, RedHat 9.0, apache 2.0.48, mysql 4.0.17, php 4.3.4 (memory_limit = 16M), and php accelerator 1.3.3r2 (phpa.shm_size - 16 made a big difference (.5 seconds saved in template processing) compared to the 15MB recommended on ez.no's documentation). The server is a 300Mhz Celeron with 264MB (that or thereabouts).

Note that when I run ppa_cache_admin -mv as root, I get "No shm cache available with key 0x0c0deb00. The cache may not exist or you may have insufficient permissions to access it." I'm not convinced it's not running, though.

Note also that the thing used to take 30-40 seconds. The fix? Reboot. I'm guessing the various attempts at installing postgresql, then mysql, plus a new apache meant I had multiple instances of some or all of those in memory, and the thing was thrashing. Now my vmstat shows no processes waiting and 99% of CPU time in idle, with 3564 pages of memory free. When I refresh a page, r becomes 1-2 for ~3 seconds, while CPU user time goes to 67-85% and system time to 11-19%, and cs goes to 167-285.

I'm hoping to get a page to load in under 1 second, so I can have 2-5 connections at one time. Thank you for any suggestions.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

eZ debug

Timing: Jan 19 2025 04:33:47
Script start
Timing: Jan 19 2025 04:33:47
Module start 'content'
Timing: Jan 19 2025 04:33:47
Module end 'content'
Timing: Jan 19 2025 04:33:47
Script end

Main resources:

Total runtime0.2776 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 588.9688180.8359
Module start 'content' 0.00820.0060 769.804793.8828
Module end 'content' 0.01420.2633 863.6875525.2813
Script end 0.2775  1,388.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.6181200.0002
Check MTime0.00160.5645200.0001
Mysql Total
Database connection0.00130.452810.0013
Mysqli_queries0.219278.94731410.0016
Looping result0.00180.63721390.0000
Template Total0.263094.710.2630
Template load0.00110.398810.0011
Template processing0.261994.333910.2619
Override
Cache load0.00080.295810.0008
Sytem overhead
Fetch class attribute can translate value0.00080.289310.0008
XML
Image XML parsing0.00030.097710.0003
General
dbfile0.00682.4494200.0003
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs