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

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
administration:starting_and_stopping_solr [2017/08/22 13:05] – [Linux (init.d) Method] demiankatzadministration:starting_and_stopping_solr [2018/06/19 16:59] – [Linux (init.d) Method] demiankatz
Line 21: Line 21:
 Note:  If you previously rebooted your system without manually stopping Solr, the script may mistakenly believe that it is still running.  In this case, a [[starting_and_stopping_solr#restarting_solr_manually|manual restart]] should solve the problem. Note:  If you previously rebooted your system without manually stopping Solr, the script may mistakenly believe that it is still running.  In this case, a [[starting_and_stopping_solr#restarting_solr_manually|manual restart]] should solve the problem.
  
 +=== Limit Warnings ===
 +
 +Starting with Solr 7.3.1, you may see warnings on startup resembling:
 +
 +<code>
 +*** [WARN] *** Your open file limit is currently 1024.
 + It should be set to 65000 to avoid operational disruption.
 + If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
 +*** [WARN] ***  Your Max Processes Limit is currently 15058.
 + It should be set to 65000 to avoid operational disruption.
 + If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
 +</code>
 +
 +This is warning of some default settings that could impact the performance of your Solr instance. On most Linux platforms, this can be addressed by editing the /etc/security/limits.conf file and adding these lines:
 +
 +<code>
 +username         soft    nproc           65000
 +username         soft    nofile          65000
 +username         hard    nproc           65000
 +username         hard    nofile          65000
 +</code>
 +
 +(where "username" is the name of the user that will be running Solr).
 +
 +It may be necessary to log out of your terminal session and log back in for these settings to take effect.
 ==== Windows Method ==== ==== Windows Method ====
  
Line 113: Line 138:
  
 You can set up Solr to run as a daemon. To do so, create a wrapper script in /etc/init.d/vufind: You can set up Solr to run as a daemon. To do so, create a wrapper script in /etc/init.d/vufind:
- 
-:!: Important: These instructions were written for VuFind 2.x, when the Solr script was still named vufind.sh instead of solr.sh; if running VuFind 3.0 or newer, you may wish to replace "vufind.sh" with "solr.sh" in these examples or investigate using the automation tools bundled with Solr 5+. 
  
 :!: Important: These instructions were written for VuFind 3.0 or later, when the Solr script was changed to solr.sh instead of vufind.sh; if running VuFind 2.x or earlier, you should replace "solr.sh" with "vufind.sh" in these examples. :!: Important: These instructions were written for VuFind 3.0 or later, when the Solr script was changed to solr.sh instead of vufind.sh; if running VuFind 2.x or earlier, you should replace "solr.sh" with "vufind.sh" in these examples.
Line 123: Line 146:
 #!/bin/sh #!/bin/sh
 ### BEGIN INIT INFO ### BEGIN INIT INFO
 +# Provides: vufind
 +# Required-Start:
 +# Required-Stop:
 # Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
 # Default-Stop: 0 1 6 # Default-Stop: 0 1 6
administration/starting_and_stopping_solr.txt · Last modified: 2023/10/24 13:47 by demiankatz