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.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
administration:starting_and_stopping_solr [2023/03/10 11:57] – [Linux (systemd) Method] demiankatz | administration:starting_and_stopping_solr [2023/03/10 12:02] – Reduce redundant systemd examples; recommend systemd for limit fix. demiankatz | ||
---|---|---|---|
Line 32: | Line 32: | ||
</ | </ | ||
- | This is warning of some default settings that could impact the performance of your Solr instance. On some Linux platforms, | + | This is warning of some default settings that could impact the performance of your Solr instance. |
+ | |||
+ | The best way to address the errors on Linux platforms using systemd is to start Solr through systemd and ensure that your [[# | ||
+ | |||
+ | On some Linux platforms, | ||
< | < | ||
Line 45: | Line 49: | ||
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 / | ||
- | |||
- | < | ||
- | [Unit] | ||
- | Description=VuFind Starter | ||
- | After=network.target | ||
- | |||
- | [Service] | ||
- | Type=forking | ||
- | ExecStart=/ | ||
- | PIDFile=/ | ||
- | User=vufind-user | ||
- | ExecStop=/ | ||
- | SuccessExitStatus=0 | ||
- | LimitNOFILE=65000 | ||
- | LimitNPROC=65000 | ||
- | |||
- | [Install] | ||
- | WantedBy=multi-user.target | ||
- | </ | ||
- | |||
- | (Obviously the / | ||
- | |||
- | 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 ==== | ||
Line 179: | Line 159: | ||
ExecStop=/ | ExecStop=/ | ||
SuccessExitStatus=0 | SuccessExitStatus=0 | ||
+ | LimitNOFILE=65000 | ||
+ | LimitNPROC=65000 | ||
[Install] | [Install] |
administration/starting_and_stopping_solr.txt · Last modified: 2023/10/24 13:47 by demiankatz