Closing #12256 Update service.bat with a safer RAM value

This commit is contained in:
Scott Florentino 2015-08-10 12:43:11 -07:00
parent 21a7518271
commit e7aa2a1fb2
1 changed files with 2 additions and 2 deletions

View File

@ -14,14 +14,14 @@ echo JAVA_HOME points to an invalid Java installation (no java.exe found in "%JA
goto:eof
)
"%JAVA_HOME%\bin\java" -Xmx64M -version > nul 2>&1
"%JAVA_HOME%\bin\java" -Xmx50M -version > nul 2>&1
if errorlevel 1 (
echo Warning: Could not start JVM to detect version, defaulting to x86:
goto x86
)
"%JAVA_HOME%\bin\java" -Xmx64M -version 2>&1 | "%windir%\System32\find" "64-Bit" >nul:
"%JAVA_HOME%\bin\java" -Xmx50M -version 2>&1 | "%windir%\System32\find" "64-Bit" >nul:
if errorlevel 1 goto x86
set EXECUTABLE=%ES_HOME%\bin\elasticsearch-service-x64.exe