I been trying to look around for a solution to this on the internet but couldn't find any thing - Playing forge 1.18.2 server used 6.9 ish when docker is at it limit about 9.778 when limit is hit docker kills it and restarts it (note system has 32gb but server is only allocated 10gb logically I don't want to give it more ram because i may open other servers to play with buddy's) fyi node is allocated about 30gb then rest is system
#pterodactyl docker keeps giving error 137 (oom)
11 messages · Page 1 of 1 (latest)
so you are confused that a mc server container is being killed when it reachs it's memory limit?
yah docker container is being killed- I gave it 10gb because modpack (felt like this was a good amount) minimum is 8gb. docker reads 9.778gb then oom but using spark says 6.9gb within the server wondering if there solution to this without increasing ram. I tried some startup changes
well in regards to minecraft and mostly java, there are 2 kinds of using ram, java can allocate ram, this means that java owns the memory and other proccess are not allowed to use the memory, but just because java has allocated the ram, doesn't mean that minecraft is using that ram, by default java/minecraft only allocates the ram it needs/ uses , at least roughly, but some mods makes java allocate a bit more memory because that way java can use it faster (faster to have the memory already allocated so it can just use rather than have to allocate and then use it), what it sounds like is that while minecraft is not using all the memory (u said it is using around 7 gb of ram), java though seems to be trying to allocate more memory (most likely because of a mod setting) and trying to allocate more than it is suppose to and docker therefor kills it
my reccomendation is to check server settings (pterodactyl panel server) there should be a OOM Killer setting
I already had pterodactyl oom disabled in panel
the docker container also needs memory for the environment outside of the minecraft server. so if you are giving the minecraft server 10gb, you need to allocate like 11-12gb to the server to give the headroom for the environment
this, forgot to mention this
would I allocate this within docker config or just in pterodactyl panel?
just allocate it in the panel. the number you put into the allocated memory is the amount of memory for the entire docker container