Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The JVM heap size can be changed by uncommenting the SOLR_JAVA_MEM parameter in the OS specific solr.in.* file (cmd for windows, sh for linux) and changing its value.For example, to increase the max heap size to 1G use: -Xms512m –Xmx1g. Make sure SOLR_HEAP is commented out.

Code Block
# Increase Java Heap as needed to support your indexing / query needs
#SOLR_HEAP="512m"

# Expert: If you want finer control over memory options, specify them directly
# Comment out SOLR_HEAP if you are using this though, that takes precedence
SOLR_JAVA_MEM="-Xms512m -Xmx1g"

...