Problem Server optimization 1.7.10 Infinity

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
G

Gmanc2

Guest
I was just wondering if there was any improvements I could make to my server to optimize it further. It's extremely laggy when you generate new chunks or a new player connects!

**Startup Script:**
@if NOT "%FTB_VERBOSE%"=="yes" (
@Echo off
)

call settings.bat

if NOT EXIST minecraft_server.1.7.10.jar (
goto install
)
if NOT EXIST libraries\%LAUNCHWRAPPER% (
goto install
)
goto skipinstall

:install
echo running install script!
call FTBInstall.bat
:skipinstall

REM Check if java in path
REM TODO: use %JAVACMD%
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 =======================================
more 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
)

del /f /q autostart.stamp > nul 2>1

:startserver
echo Starting server
java -server -Xms10240M -Xmx12288M -XX:permSize=512M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:parallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1614.jar nogui

:server_loop
if exist autostart.stamp (
del /f /q autostart.stamp > nul 2>1
echo If you want to completely stop the server process now, press Ctrl+C before the time is up!
for /l %%i in (5,-1,1) do (
echo Restarting server in %%i
choice /t 1 /d y > nul
)
echo Starting server now
java -server -Xms10240M -Xmx12288M -XX:permSize=512M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:parallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1614.jar nogui
echo Server process finished
goto :server_loop
)
echo Exiting...
pause
**Server Specs:**
16GB Ram
2x CPU L5420 Intel 2.5GHz
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
Number one suggesting I can make is cutting down the RAM you have allocated. Should be about 4 GB for most servers. With the XMS about 1GB. Also, use Java 8 64 bit and eliminate most of those other command line arguments include permsize. By allocating so much RAM Java is actually using more CPU time trying to manage the extra mem it doesn't need.

My typical start line is java -server -Xms1024M -Xmx4096M -jar FTBServer-1.7.10-1614.jar nogu