Allow overriding JVM options in Windows service (#29044)

Today we allow any other method of starting Elastisearch to override
jvm.options via ES_JAVA_OPTS. Yet, for some settings in the Windows
service, we do not allow this. This commit removes this in favor of
being consistent with other packaging choices.
This commit is contained in:
Jason Tedor 2018-03-15 21:35:40 -04:00 committed by GitHub
parent 55683d89c4
commit 4897e0034b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 24 deletions

View File

@ -120,50 +120,26 @@ echo %ES_JAVA_OPTS%
for %%a in ("%ES_JAVA_OPTS:;=","%") do (
set var=%%a
if "!var:~1,4!" == "-Xms" (
if not "!JVM_MS!" == "" (
echo duplicate min heap size settings found
goto:eof
)
set XMS=!var:~5,-1!
call:convertxm !XMS! JVM_MS
)
if "!var:~1,16!" == "-XX:MinHeapSize=" (
if not "!JVM_MS!" == "" (
echo duplicate min heap size settings found
goto:eof
)
set XMS=!var:~17,-1!
call:convertxm !XMS! JVM_MS
)
if "!var:~1,4!" == "-Xmx" (
if not "!JVM_MX!" == "" (
echo duplicate max heap size settings found
goto:eof
)
set XMX=!var:~5,-1!
call:convertxm !XMX! JVM_MX
)
if "!var:~1,16!" == "-XX:MaxHeapSize=" (
if not "!JVM_MX!" == "" (
echo duplicate max heap size settings found
goto:eof
)
set XMX=!var:~17,-1!
call:convertxm !XMX! JVM_MX
)
if "!var:~1,4!" == "-Xss" (
if not "!JVM_SS!" == "" (
echo duplicate thread stack size settings found
exit 1
)
set XSS=!var:~5,-1!
call:convertxk !XSS! JVM_SS
)
if "!var:~1,20!" == "-XX:ThreadStackSize=" (
if not "!JVM_SS!" == "" (
echo duplicate thread stack size settings found
goto:eof
)
set XSS=!var:~21,-1!
call:convertxk !XSS! JVM_SS
)