Forums / Extensions / Ez Find Update Index Clean taking too much server resources

Ez Find Update Index Clean taking too much server resources

Author Message

Julian Mancera

Wednesday 13 January 2010 7:43:26 am

Hi all,

I'm having problem to make a clean indexing of my production site. The updatesearchindexsolr.php --clean script takes too much resuorces of the server. I check the server processes and it seems that java and mysql are draining all memory and processor and as this is my production machine the web server serves the pages really slow. I tried to put a "nice" linux command to see if the process drains less resources but as the script calls mysql and java that have unlimited use of resources as they are used in the web server, is there a way of limiting the resources usage so I can run a clean indexing?

Thank you all for your time and take care

Julian

Paul Borgermans

Wednesday 13 January 2010 9:38:48 am

Hi Julian,

re-indexing indeed needs a lot of cpu/disk resources, mainly on the ez publish side (pulling data and assembling the ezp objects)

You could insert usleep() or sleep() in the update script, but then re-indexing may take too long

Paul

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

Robin Muilwijk

Saturday 16 January 2010 12:30:13 am

Hi Paul,

Out of curiosity, would it help to tune Java as explained on http://ez.no/doc/extensions/ez_find/2_1/basic_configuration/solr_backend ?

And what about updating a staging area with production files and database, running the re-index on staging, and then move the solr index file over to production?

Thanks 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

Paul Borgermans

Saturday 16 January 2010 12:38:00 pm

Hi Robin

Tuning helps yes, and also using a staging index helps (you can simply copy over the index files). For more intensive sites with lots of search traffic, a master slave config for Solr may be an even better alternative.

But again, even when re-indexing with a tuned eZ Find/Solr, its still the eZ Publish side that is slow

Paul

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

Robin Muilwijk

Saturday 16 January 2010 11:52:52 pm

@Paul, thanks for elaborating on this.

@Julian, hopefully this shows you some directions in improving the performance of re-indexing your site.

-- 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

eZ debug

Timing: Jan 18 2025 03:08:52
Script start
Timing: Jan 18 2025 03:08:52
Module start 'content'
Timing: Jan 18 2025 03:08:52
Module end 'content'
Timing: Jan 18 2025 03:08:52
Script end

Main resources:

Total runtime0.8018 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.0859180.7969
Module start 'content' 0.00750.6888 769.8828613.4531
Module end 'content' 0.69630.1054 1,383.3359337.3359
Script end 0.8017  1,720.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5412210.0002
Check MTime0.00150.1873210.0001
Mysql Total
Database connection0.00120.148310.0012
Mysqli_queries0.731291.19272030.0036
Looping result0.00190.24002010.0000
Template Total0.773896.520.3869
Template load0.00200.246620.0010
Template processing0.771896.266720.3859
Template load and register function0.00030.033410.0003
states
state_id_array0.00050.064210.0005
state_identifier_array0.00120.144520.0006
Override
Cache load0.00160.2043310.0001
Sytem overhead
Fetch class attribute can translate value0.00220.275240.0006
Fetch class attribute name0.00100.121270.0001
XML
Image XML parsing0.00130.166540.0003
class_abstraction
Instantiating content class attribute0.00000.001890.0000
General
dbfile0.00220.2749360.0001
String conversion0.00000.000730.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs