M
Mholmes
Guest
I've searched several tuts on how to do this and none of them seem to work or even be relevant to my server. My understanding is you need to modify "ServerStart.bat" file using notepad. Below Is a copy of mine.
Being an experienced .net dev I assume the section I need to modify is this:
So what am I doing wrong here? Sorry I don't know the Java syntax that well. I do know Java is case sensitive language. That's about the end of my Java knowledge. I would like to dedicate 2Gigs of memory to my server currently and later on I will want to dedicate about 12 gigs.
Code:
if NOT "%FTB_VERBOSE%"=="yes" (
@echo off
)
if NOT EXIST minecraft_server.1.7.10.jar (
echo running install script!
call FTBInstall.bat
)
REM Check if java in path
where java > NUL 2>&1
if %ERRORLEVEL% NEQ 0 (
echo No java binary in path. Can't run server, exiting...
pause
exit /B
)
REM Test JVM
REM e.g. 32-bit JVM does not have server\jvm.dll library
java -server -version > java-test.log 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Detected following JVM error:
echo =======================================
cat java-test.log
echo =======================================
echo JVM test failed. Can't run server, Exiting...
pause
exit /B
)
if not exist eula.txt (
echo Missing eula.txt. Startup will fail and eula.txt will be created
echo Make sure to read eula.txt before playing!
goto startserver
)
find "eula=false" eula.txt 1 > NUL 2>&1
if %ERRORLEVEL% EQU 0 (
echo Make sure to read eula.txt before playing! Exiting.
pause
exit /B
)
:startserver
java -server -Xms1024m -Xmx2g -XX:PermSize=500m -d64 -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1448.jar nogui
echo Server process finished
pause
Being an experienced .net dev I assume the section I need to modify is this:
Code:
:startserver
java -server -Xms1024m -Xmx2g -XX:PermSize=500m -d64 -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1448.jar nogui
echo Server process finished
pause
So what am I doing wrong here? Sorry I don't know the Java syntax that well. I do know Java is case sensitive language. That's about the end of my Java knowledge. I would like to dedicate 2Gigs of memory to my server currently and later on I will want to dedicate about 12 gigs.