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 [2018/06/20 12:06] – [Linux (init.d) Method] demiankatzadministration:starting_and_stopping_solr [2018/08/01 20:12] – [Linux Method] demiankatz
Line 34: Line 34:
 </code> </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:+This is warning of some default settings that could impact the performance of your Solr instance. On some Linux platforms, this can be addressed by editing the /etc/security/limits.conf file and adding these lines:
  
 <code> <code>
Line 46: Line 46:
  
 It may be necessary to log out of your terminal session and log back in for these settings to take effect. It may be necessary to log out of your terminal session and log back in for these settings to take effect.
 +
 +On Linux platforms using systemd, you may be able to work around the problem with a systemd file like this example (in a file like /etc/systemd/system/vufind.service):
 +
 +<code>
 +Description=VuFind Starter
 +After=network.target httpd.service
 +
 +[Service]
 +Type=forking
 +ExecStart=/bin/sh -l -c '/usr/local/vufind/solr.sh start' -x
 +PIDFile=/usr/local/vufind/solr/vendor/bin/solr-8080.pid
 +User=vufind-user
 +ExecStop=/bin/sh -l -c "/usr/local/vufind/solr.sh stop" -x
 +SuccessExitStatus=0
 +LimitNOFILE=65000
 +LimitNPROC=65000
 +
 +[Install]
 +WantedBy=multi-user.target
 +</code>
 +
 +(Obviously the /usr/local/vufind path and the vufind-user username should be customized to reflect your local needs).
 +
 +Once this is in place, you can use "sudo service vufind start" and "sudo service vufind stop" to start and stop the process, and appropriate limits will be applied.
 ==== Windows Method ==== ==== Windows Method ====
  
administration/starting_and_stopping_solr.txt · Last modified: 2023/10/24 13:47 by demiankatz