Solved Allocate (more) memory FTB Beyond

  • 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
H

Hovel

Guest
Hi FTB Forum,

First post here, please let me know if I missed any formalities :).

I've been running FTB serverpacks on Windows (7/8/10) in de past, but I started running FTB Beyond on my Ubuntu server. Everything works well, but the server seems to crash on memory. (I can't find anything in my logs). Also slow rendering of new chunks have been reported by all players.

System specs (server only):
Ubuntu 16.04 LTS
i5 4460
16 GB (4 x 4GB DDR3)
Samsung 750 evo 256GB

FTB Beyond 1.2.0 (now going to 1.5.3)
Maximum players on server: 6


While I'm updating to FTB Beyond 1.5.3, I want to change my Xms and Xmx parameters somewhere. I tried editing the ServerStart.sh, but I will only give me errors when I edit the specific part below:

# cleaner code 2
start_server() {
"$JAVACMD" -server -Xms${MIN_RAM} -Xmx${MAX_RAM} -XX:permSize=${PERMGEN_SIZE} ${JAVA_PARAMETERS} -jar ${FORGEJAR} nogui
}


to something like this:

# cleaner code 2
start_server() {
"$JAVACMD" -server -Xms1024M -Xmx2048M -XX:permSize=${PERMGEN_SIZE} ${JAVA_PARAMETERS} -jar ${FORGEJAR} nogui
}

OR

# cleaner code 2
start_server() {
"$JAVACMD" -server -Xms${1024M} -Xmx${2048M} -XX:permSize=${PERMGEN_SIZE} ${JAVA_PARAMETERS} -jar ${FORGEJAR} nogui
}



When I start the server with the following command, it will start but I'm not sure if the -Xms1G -Xmx2G works with the ServerStart.sh

./ServerStart.sh -Xms1G -Xmx2G



I feel I'm very close, but probably missing a small part. Please let me know what I'm missing here.

Thanks!
 

LordPINE

Well-Known Member
Jan 2, 2016
345
249
69
You are supposed to edit the settings.sh file to change the xms and xmx parameters, instead of editing the start.sh file directly.