Problem in JVM heap size when migrating from Solr 5.0 to Solr 5.1

Asked

Viewed 18 times

0

I have an instance of Solr 5.0.0 in production with the following JVM heap size configuration:

SOLR_JAVA_MEM="-Xms2g -Xmx2g"

When I migrated to Solr 5.1.0 with the same configuration and started the server, I encountered an error Outofmemoryerror. Watching the Solr API I realized that the heap size was with 512m. My heap configuration is not working, causing the server to start with the default heap size.

1 answer

1


There is a bug that only occurs on Solr 5.1. This bug has been fixed by the Apache Solr team and is in Solr version 5.2.

https://issues.apache.org/jira/browse/SOLR-7454

The problem is that Solr 5.1 no longer uses the variable SOLR_JAVA_MEM to change the size of the JVM heap. This version uses the variable SOLR_HEAP which changes the minimum and maximum heap with the same value:

SOLR_HEAP="2g"

That way Solr will be started with -Xms=2g and -Xmx=2g

In Solr 5.2 this problem was corrected and the two variables SOLR_JAVA_MEM and SOLR_HEAP work properly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.