About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:performance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
administration:performance [2020/03/04 13:15] – [Resources] demiankatzadministration:performance [2022/05/06 12:52] (current) – [Garbage Collection] demiankatz
Line 34: Line 34:
 === Collecting Data === === Collecting Data ===
  
-If you want to learn more about your garbage collection performance, you can add the -Xloggc:[filename] parameter to your SOLR_ADDITIONAL_JVM_OPTIONS variable to create a log file containing data on Java's behavior.  For example, if you want to store logs in your existing Jetty log folder and use the current date as part of the filename, you could start Solr like this:+If you want to learn more about your garbage collection performance, you can add the -Xlog:gc:[filename] parameter to your SOLR_ADDITIONAL_JVM_OPTIONS variable to create a log file containing data on Java's behavior.  For example, if you want to store logs in your existing Jetty log folder and use the current date as part of the filename, you could start Solr like this:
  
 <code> <code>
-SOLR_ADDITIONAL_JVM_OPTIONS="-Xloggc:$VUFIND_HOME/solr/vufind/logs/gc-`/bin/date +%F-%H-%M`.log" ./solr.sh start+SOLR_ADDITIONAL_JVM_OPTIONS="-Xlog:gc:$VUFIND_HOME/solr/vufind/logs/gc-`/bin/date +%F-%H-%M`.log" ./solr.sh start
 </code> </code>
  
Line 44: Line 44:
 :!: Note that as of VuFind 5.0 (and possibly earlier), the default Solr configuration in VuFind creates a garbage collection log in $VUFIND_HOME/solr/vufind/logs/solr_gc.log, so it may be unnecessary to add extra parameters. However, the example above logs in the specific format expected by GCViewer and shows a way you can control the log filenames, so it is retained as potentially useful for reference. :!: Note that as of VuFind 5.0 (and possibly earlier), the default Solr configuration in VuFind creates a garbage collection log in $VUFIND_HOME/solr/vufind/logs/solr_gc.log, so it may be unnecessary to add extra parameters. However, the example above logs in the specific format expected by GCViewer and shows a way you can control the log filenames, so it is retained as potentially useful for reference.
  
 +:!: Note that in older versions of Java (8 and earlier), -Xlog:gc was called -Xloggc.
 ==== Setting SOLR_ADDITIONAL_JVM_OPTIONS ==== ==== Setting SOLR_ADDITIONAL_JVM_OPTIONS ====
  
Line 190: Line 191:
  
 ---- struct data ---- ---- struct data ----
 +properties.Page Owner : 
 ---- ----
  
administration/performance.1583327736.txt.gz · Last modified: 2020/03/04 13:15 by demiankatz