Minecraft Modded - Feed the Beast Revelation serve lag when launched from UGCC

Having problems with the panel? Have questions? Post here!
Post Reply
chaoschao11
Posts: 12
Joined: Sun May 26, 2019 12:08 pm
Location: Canada Eh?

Minecraft Modded - Feed the Beast Revelation serve lag when launched from UGCC

Post by chaoschao11 »

Operating System = Win Server 2019
Arch = 64bit
Install method = EzUGCC
Database being used = sqlite


Hey guys, hoping someone smart can help me out. I am running a modded Minecraft server specifically FTB Revelation.

Today I tried to move it over to the panel, instead of launching it with the .bat the FTB team provides. I ensured it has the same java args and that it had 6 GBs allocated (Recommended 4). But for some reason it lags to death when managed by the panel and works just fine when when launched via the bat.

I have set the processor priority to high in windows and notice that it uses a decent amount of processing power but even though I give it 6 GBs it never goes over 2. (Yes I have 64bit java installed lol)

Any suggestions?
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Minecraft Modded - Feed the Beast Revelation serve lag when launched from UGCC

Post by Masher »

Post the batch file contents, and the executable settings you're using within the panel please.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
chaoschao11
Posts: 12
Joined: Sun May 26, 2019 12:08 pm
Location: Canada Eh?

Re: Minecraft Modded - Feed the Beast Revelation serve lag when launched from UGCC

Post by chaoschao11 »

Will do...

FTB has it in two batches, one labeled serverstart.bat:
@if NOT "%FTB_VERBOSE%"=="yes" (
@echo off
)

call settings.bat

if NOT EXIST %JARFILE% (
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 -Xmx%MAX_RAM% -XX:PermSize=%PERMGEN_SIZE% %JAVA_PARAMETERS% -jar %FORGEJAR% 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 -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar %FORGEJAR% nogui
echo Server process finished
goto :server_loop
)
echo Exiting...
pause
And then a settings.bat:
rem Do not touch
set MCVER=1.12.2
set JARFILE=minecraft_server.%MCVER%.jar
set LAUNCHWRAPPERVERSION=1.12
set LAUNCHWRAPPER=net\minecraft\launchwrapper\%LAUNCHWRAPPERVERSION%\launchwrapper-%LAUNCHWRAPPERVERSION%.jar
set FORGEJAR=FTBserver-1.12.2-14.23.5.2836-universal.jar

rem can be changed by user
set MAX_RAM=4048M
set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=5 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10
Attachments
Capture.PNG
Post Reply