Hi all. I've searched for similar threads without being able to find a fix, so I'm hoping someone can offer advice. I've installed a new server for FTB Ultimate Reloaded 1.8.0. I'm trying to allocate more RAM to the server as it's lagging quite a bit, and my GUI shows it's using ~512 MB with 1% additional RAM free. However, I've already gone into the settings.bat file and changed the text as follows:
ServerStart.bat - https://pastebin.com/avJCVPP7
Settings.bat - https://pastebin.com/EuK88G9R
Post update:
I've fixed the problem through a lot of Google searching and trial and error. I deleted my settings.bat file and made a new ServerStart.bat file with the text below. The additional Java parameters appear to be helping significantly, as there's next to no lag on the server now.
As far as I can tell, the ServerStart.bat file defaults to the parameters set in the settings.bat file as indicated by the below text:rem can be changed by user
set MAX_RAM=8G
set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX: ParallelGCThreads=5 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10
and defines the max ram using this definition which matches up with the settings.bat file:@if NOT "%FTB_VERBOSE%"=="yes" (
@echo off
)
call settings.bat
So why, when the settings.bat file has been updated with a max ram size of 8G, am I still showing that there's only 1% of available RAM free in the GUI when it's only using 512 MB? Any help is greatly appreciated and I'm sorry if this has been solved elsewhere - I tried searching for it. I'm still very new to this stuff and have zero experience with reading actual code so I may be misunderstanding something. Exact copies of my ServerStart.bat and settings.bat files are below::startserver
echo Starting server
java -server -Xmx%MAX_RAM% -XX: PermSize=%PERMGEN_SIZE% %JAVA_PARAMETERS% -jar %FORGEJAR%
ServerStart.bat - https://pastebin.com/avJCVPP7
Settings.bat - https://pastebin.com/EuK88G9R
Post update:
I've fixed the problem through a lot of Google searching and trial and error. I deleted my settings.bat file and made a new ServerStart.bat file with the text below. The additional Java parameters appear to be helping significantly, as there's next to no lag on the server now.
@Echo OFF
java -Xms2G -Xmx10G -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=45 -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -jar -jar FTBserver-1.12.2-14.23.5.2838-universal.jar --nogui
pause
Last edited: