-
Notifications
You must be signed in to change notification settings - Fork 18
Restarting SOLR
Steve McDonald edited this page Sep 6, 2016
·
6 revisions
Sometimes the SOLR index gets corrupted or just starts acting weird and not updating. Not really sure why this happens, but it does.
You need to restart SOLR by SSH'ing into production and then running the following commands:
cd /opt/solrHeatmap/solr-5.5.0
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
bin/solr start -m 700m -p 8080
Note that Solr no longer runs under Tomcat like it used to.
Before the update for heatmaps, here's how we used to restart Solr:
sudo service tomcat7 restart
This restarts the tomcat process which is running the server. You can then force SOLR to update yourself by running the python script python /opt/solr/config/solr/updatesolr.py
or just wait the minute it takes for it to be run by the cron job.