Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
5.1
-
None
-
None
-
CentOS 7
Description
Solr 5.0 uses the SOLR_JAVA_MEM in solr.in.sh while Solr 5.1 does not.
I was able to resolve this by commenting out line 1262 in bin/solr
SOLR_JAVA_MEM=()
and setting SOLR_JAVA_MEM in bin/solr.in.sh
SOLR_JAVA_MEM=('-Xms512m' '-Xmx512m')
instead of
SOLR_JAVA_MEM="-Xms512m -Xmx512m"
This could probably be resolved with something like at line 1262 to 1269 in bin/solr
if [ -z "$SOLR_JAVA_MEM" ]; then if [ "$SOLR_HEAP" != "" ]; then SOLR_JAVA_MEM=("-Xms$SOLR_HEAP" "-Xmx$SOLR_HEAP") else SOLR_JAVA_MEM=('-Xms512m' '-Xmx512m') fi else SOLR_JAVA_MEM=($SOLR_JAVA_MEM) fi
instead of
SOLR_JAVA_MEM=() if [ "$SOLR_HEAP" != "" ]; then SOLR_JAVA_MEM=("-Xms$SOLR_HEAP" "-Xmx$SOLR_HEAP") fi if [ -z "$SOLR_JAVA_MEM" ]; then SOLR_JAVA_MEM=('-Xms512m' '-Xmx512m') fi
Attachments
Issue Links
- duplicates
-
SOLR-7392 SOLR_JAVA_MEM setting in solr.in.sh ignored
- Closed