Skip to content
Snippets Groups Projects
Commit 96e9a158 authored by Leila Gonzales's avatar Leila Gonzales Committed by Demian Katz
Browse files

Solr additional JVM options variable (#854)

parent 55acbe18
No related merge requests found
...@@ -21,6 +21,9 @@ rem ...@@ -21,6 +21,9 @@ rem
rem JAVA_HOME rem JAVA_HOME
rem Home of Java installation (not directly used by this script, but passed along to rem Home of Java installation (not directly used by this script, but passed along to
rem the standard Solr control script). rem the standard Solr control script).
rem
rem SOLR_ADDITIONAL_JVM_OPTIONS
rem Additional options to pass to the JVM when launching Solr.
rem Make sure that environment edits are local and that we have access to the rem Make sure that environment edits are local and that we have access to the
rem Windows command extensions. rem Windows command extensions.
...@@ -74,7 +77,7 @@ if not "!%SOLR_PORT%!"=="!!" goto solrportset ...@@ -74,7 +77,7 @@ if not "!%SOLR_PORT%!"=="!!" goto solrportset
set SOLR_PORT=8080 set SOLR_PORT=8080
:solrportset :solrportset
call %SOLR_BIN%\solr.cmd %1 -p %SOLR_PORT% -s %SOLR_HOME% -m %SOLR_HEAP% -a "-Dsolr.log=%SOLR_LOGS_DIR%" call %SOLR_BIN%\solr.cmd %1 -p %SOLR_PORT% -s %SOLR_HOME% -m %SOLR_HEAP% -a "-Dsolr.log=%SOLR_LOGS_DIR% %SOLR_ADDITIONAL_JVM_OPTIONS%"
goto end goto end
:usage :usage
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
# Home of Java installation (not directly used by this script, but passed along to # Home of Java installation (not directly used by this script, but passed along to
# the standard Solr control script). # the standard Solr control script).
# #
# SOLR_ADDITIONAL_JVM_OPTIONS
# Additional options to pass to the JVM when launching Solr.
#
usage() usage()
{ {
...@@ -64,5 +67,10 @@ then ...@@ -64,5 +67,10 @@ then
SOLR_PORT="8080" SOLR_PORT="8080"
fi fi
if [ -z "$SOLR_ADDITIONAL_JVM_OPTIONS" ]
then
SOLR_ADDITIONAL_JVM_OPTIONS=""
fi
export SOLR_LOGS_DIR=$SOLR_LOGS_DIR export SOLR_LOGS_DIR=$SOLR_LOGS_DIR
"$SOLR_BIN/solr" "$1" -p "$SOLR_PORT" -s "$SOLR_HOME" -m "$SOLR_HEAP" -a "-Dsolr.log=$SOLR_LOGS_DIR" "$SOLR_BIN/solr" "$1" -p "$SOLR_PORT" -s "$SOLR_HOME" -m "$SOLR_HEAP" -a "-Dsolr.log=$SOLR_LOGS_DIR $SOLR_ADDITIONAL_JVM_OPTIONS"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment