Memory Swap usage at 97%, server crashing on async tasks
How fix? Server has never hit it's max 20gigs, has issues even with no players online. Just started crashing badly today. Hosted on bisect if that helps any, they recently changed panel to Aurora which has been an unwelcome change lol any ideas? Let me know what sort of information you might need to help solve!
41 Replies
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 themuskratqueen#0
Server is 1.20.4, that might be relevant
Turns out Bisect is the issue
doesn't suprise me
make a post in #marketplace
they are neutering our 20gig of ram to 5-6 because they turned on memory swap or something
youre apparantly not supposed to have our issue if youre not out of ram XD it says 5/20gig right now
swap is really bad
They're using the disk as RAM
would highly recommend https://bloom.host , it's who I use and haven't had any issues, but yeah bisect isn't know to be a good provider. if you make a post in #marketplace other hosts themselves will come to you as well
Bloom.Host
Bloom Host | Dedicated Minecraft Hosting, VPS and Bare Metal
Bloom offers Ryzen 9 dedicated Minecraft server hosting, dedicated Virtual Private Servers and Bare Metal. Experience the outstanding performance of Bloom!
its been running great up until today 😦 we got a hell of a deal with bisect too an a sale they had
What plan did you pay for?
they aren't known to be great, and I doubt that you're deal is truly one that good tbh ¯\_(ツ)_/¯
^^ I agree with Ibotmealot
we're on budget with 20 gigs we got on a black friday sale for 50% off
what are you paying and what are the specs you get in return?
so we pay 50cad a month for 20 gigs and its been LOVELY until now
bruh with that money
you can rent a whole dedicated server
with 64GB of RAM
lol
and a solid processor (e.g i9-9900k)
^ yeah you're really overpaying, also 20gb is too much for minecraft
they're scamming you
!oom
My server is using too much memory
My panel says my memory usage is high all the time.
Your server runs in the Java Virtual Machine (JVM), which has significant overhead & tries to effectively use ALL of the memory assigned to it.
Memory usage from "htop", Task Manager, or your server panel is the total consumption of the JVM, not just your server.
My server is lagging & I think it's memory related.
It's much more likely that you are bottlenecked by your CPU, disk, or some inefficient mod/plugin.
Rule of thumb, servers should have anywhere from 4GB to 12GB of memory, with 8GB being the 'sweet spot'.
If you're heavily modded, add 4GB to that.
Too much memory can be a bad thing. Don't exceed these caps unless you really know why you're doing it.
Troubleshoot your server the right way: use Spark & send us a report.
My server is randomly terminated unexpectedly.
Setting your server to use 8GB does not mean that Java won't exceed this amount.
As a rule of thumb, allow your system/container about 1-2GB (possibly more) overhead outside of the server.
If you're on Linux & can SSH into the system, check your kernel logs. They will report any incidents of OOM.
I want to use swap to allocate more memory.
Don't. Swap is not free memory and using it can negatively impact performance.
Admincraft Canned Responses
this message explains it more but you really only need 12gb max, any more is just like throwing it at the server to burn
we run alot of plugins tho
like?
still overpriced though
yeah what plugins
we usually use about 14gigs out of the 20
and 20gb is still too much, regardless of plugin count imo
one of the plugins we refuse to get rid of has a memory leak the dev wont fix lol
that's because if you give minecraft that much it's going to use that much
did you use Aikar's flags to optimise java garbage collection?
it doesn't mean that it needs that much
:Kanye_Stare: what plugin
!aikar
Garbage Collection is an important aspect of Java
Usually you'll want to fine-tune your server's GC to maximize efficiency but minimize the negative effects (e.g. stuttering).
The baseline recommendation is to use G1GC, you should follow aikar's recommendations (a Paper core dev) on how to tweak it.
For contemporary java versions, there's also ShenandoahGC with even shorter pauses and smaller CPU overhead, hilltty's flagset is the usually recommended.
If you feel adventurous, you can also try out the latest of the three, ZGC. It is not yet spread wide, actually digging up a reference was somewhat hard.
If you want to read a general overview of Java GCs, there's this one in the making.
Admincraft Canned Responses
mythicmobs
this reduces memory usage by a significant amount since old unused memory in the RAM gets cleaned up faster
will it even help though if the host is throttling our ram?
shendoah sadge
no, hence switching hosts
gotcha
since you're already on swap (aka Fake RAM) it won't be as significant of an improvement over your current setup if you stay with bisect
Conclusion: Bisect is terrible and will steal your ram
!solved
post closed!
The post/thread has been closed!
Requested by themuskratqueen#0