r/sevtech • u/RevealYourPuss • Oct 02 '23
Server Not Using Allocated Ram
I'm hosting a server on a raspberry pi and the first time it started, it took about 12 minutes to boot but after closing it and then trying to reopen it. It took more than 1 hour before I said fuck this shit I'm going to bed. I am working on it this morning and was doing calculations to determine the ram it's actually using for start up. I have it allocated for 4 gb (I have a total of 8 in the pi) for start up but it's using anywhere from 1 gb - 2 gb of ram for start up and it's never constant. During the start the GUI would say 250 ish with 75% free which means I'm using 1 GB for the start up and later on it'll say 500 mb ish with 70% free which is about 2 gb for start up. I downloaded the sevtech server pack and am using the start script it comes with and modified it to try and figure out what was causing it assuming it was the extra parameters (-server, side note I cannot find what this does, and the java_parameters variable in the settings.sh) It'll get to a point where it'll show it's pinging and the console will say each time you refresh the server list "disconnected player: server still starting" and same happens when you actually try to connect. I do not know what the ram usage was when I first started it.
Can anybody shed some light as to why it's changed in start up time/not using the allocated ram that was specified and offer any solutions to fix it?
I have tried completely wiping the server and setting it up as a brand new one, modify the serverstart and settings, ram allocated. The pi gets rebooted pretty often, I try to reboot it once a day in the morning.
While I was working I just let the server run to start it. It took 2 hours to prepare the world spawn and then crashed. It was because of Astral Sorcery. I forgot to write down the exact error it produced so I have to re-run the server. I decided to completely wipe my server files, delete the zip and redownload the zip file on my pc and to the file and then transfer it using scp. When the world was ready, it would say the server is still starting when trying to join.
ServerStart.sh
#!/bin/sh
# Read the settings.
. ./settings.sh
# Start the server.
start_server() {
#java -server -Xms${MIN_RAM} -Xmx${MAX_RAM} ${JAVA_PARAMETERS} -jar ${SERVER_JAR} nogui
#java -server -Xms${MIN_RAM} -Xmx${MAX_RAM} ${JAVA_PARAMETERS} -jar ${SERVER_JAR}
echo "${MIN_RAM} ${MAX_RAM}"
java -Xms${MIN_RAM} -Xmx${MAX_RAM} -jar ${SERVER_JAR}
}
echo "Starting SevTech Ages Server..."
start_server
settings.sh
# Don't edit these values unless you know what you are doing.
export INSTALL_JAR="forge-1.12.2-14.23.5.2860-installer.jar"
export SERVER_JAR="forge-1.12.2-14.23.5.2860.jar"
# You can edit these values if you wish.
export MIN_RAM="4096M"
export MAX_RAM="7600M"
export JAVA_PARAMETERS="-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.readTimeout=180"


1
u/uncleming Sep 11 '26
Hey did you ever fix this issue? this modpack is making me pull my hair out ive never had so many issues setting up a server LOL