OOM Kill need help with startup configuring

Just updated server to 1.20.1 and been having problems running out of memory. Thinking it has to do with startup parameters. Not sure the steps to fix it. Currently: java -Xms4400M -Xmx4400M -jar purpur-1.20.1-2016.jar
24 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by rinkiwa#0
ProGamingDk
ProGamingDk2y ago
are u using a host
RinKiwa
RinKiwaOP2y ago
Heavynode
QarthO
QarthO2y ago
are u able to adjust ur startup flags?
ProGamingDk
ProGamingDk2y ago
set xmx to 3 gig
RinKiwa
RinKiwaOP2y ago
Yes, have full reign on configs
ProGamingDk
ProGamingDk2y ago
@Gatto does heavynode offer swap overhead
QarthO
QarthO2y ago
can also add these https://flags.sh/
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
ProGamingDk
ProGamingDk2y ago
remove alwayspretouch from em
RinKiwa
RinKiwaOP2y ago
We have 8 GB for RAM but were having problems before so changed startup, but the update reset the startup params and I don't remember what it was before I inherited this server without server manager knowledge so I apologize in advance
ProGamingDk
ProGamingDk2y ago
8gb of ram with 4 gb xmx? wha
RinKiwa
RinKiwaOP2y ago
I think the older owner kept adding ram to help lag but never changed start up parameters
QarthO
QarthO2y ago
well.. u should be able to go up to 6gb. 8gb if ur host gives u overhead ontop of the 8gb ur paying for the flags will help out a lot
RinKiwa
RinKiwaOP2y ago
Thank you, I appreciate it
ProGamingDk
ProGamingDk2y ago
np
RinKiwa
RinKiwaOP2y ago
Btw do you have a favorite host you would recommend? Feel like we're paying way too much right now
ProGamingDk
ProGamingDk2y ago
#marketplace
RinKiwa
RinKiwaOP2y ago
Thanks!
ProGamingDk
ProGamingDk2y ago
just make a post there
Gatto
Gatto2y ago
Yeah, we offer swap. It can be enabled in our control panel under "Settings" for most servers. If it's not there, a ticket is needed and it will be enabled. I would try Aikar's flags and set the Xms/Xmx to maybe 6.5 or 6 GB. Also is it actually showing oom killed or are you getting a java out of memory exception?
RinKiwa
RinKiwaOP2y ago
Used the flags and set the xms/xmx to 6400, no lag problems or crashes since (which was a day ago)
ProGamingDk
ProGamingDk2y ago
👍 just do !close
RinKiwa
RinKiwaOP2y ago
!close
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by rinkiwa#0

Did you find this page helpful?