This is a quick blog post on changing the Solr minimum and maximum memory sizes for the JVM. Solr defaults to 512m for both min and max memory, and in my local environment I started to run out of memory which crashed Solr.
How to change:
Go to your Solr bin folder:
C:\Solr\<name of instance>\bin
Open solr.in.cmd using any text editor.
Add the following to adjust the settings:
set SOLR_JAVA_MEM=-Xms512m -Xmx1g
Restart Solr Service (and Sitecore) - now you have a little extra maximum memory to use. Feel free to adjust as needed. I left my minimum alone but did double the maximum.
Comments
Post a Comment