Getting the lowest possible ram usage when zero players online?

I'm open to using any server software for this
39 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 ignamiranda#0
Discount Milk
Discount Milk2y ago
Memory usage on the panel is what the JVM has reserved from the system. The only way to lower this would be to modify your JVM flags.
Ignacio
IgnacioOP2y ago
what flags would I have to use?
Discount Milk
Discount Milk2y ago
Varies based on what you're trying to accomplish. I can tell you you're asking for a lesson in futility though.
CtrlAltDelMe
CtrlAltDelMe2y ago
Paper
Ignacio
IgnacioOP2y ago
I am using paper. My issue is that when I first start the server, it idles around 1 GB ram but after I join and leave, it stays at 2.5 GB
CtrlAltDelMe
CtrlAltDelMe2y ago
Where are you getting the mem usage reports? Trough panel?
Ignacio
IgnacioOP2y ago
the paper server gui
Ignacio
IgnacioOP2y ago
No description
CtrlAltDelMe
CtrlAltDelMe2y ago
The server GUI is not a good source to see memory usage
Ignacio
IgnacioOP2y ago
what should I be using?
CtrlAltDelMe
CtrlAltDelMe2y ago
You're seeing what the JVM is allocating. A good tool to see memory usage is.. !sparl !spark
Carl-bot
Carl-bot2y ago
Spark Profiler
Spark can be used to see why your server or client is lagging. https://spark.lucko.me/
From An unknown user
Admincraft Canned Responses
CtrlAltDelMe
CtrlAltDelMe2y ago
A really cool plugin
CtrlAltDelMe
CtrlAltDelMe2y ago
And adding this to the startup flags, removing the alwayspretouch thing and making Xms to be 128M
Aikar's Flags | PaperMC Documentation
Recommended JVM Startup Flags
CtrlAltDelMe
CtrlAltDelMe2y ago
If Xms is in a low value, the JVM (usually) won't use all the memory you've given in xmx, it'll use just what it needs & reserve the rest just in case it needs to use more You're lagging from what it seems? Avg tick is almost 1 sec long. Spark is good to see this kind of stuff, not the server GUI
Ignacio
IgnacioOP2y ago
I have the Hibernate plug in which throttles CPU usage to almost zero when no one is online
CtrlAltDelMe
CtrlAltDelMe2y ago
Oh I see That's selfhosting in your own computer from what it seems
Ignacio
IgnacioOP2y ago
yeah, I plan to eventually host it on something like AWS but I'm just testing stuff out on my PC for now
CtrlAltDelMe
CtrlAltDelMe2y ago
Noooo aws nooo That hardware is not appropriate for Minecraft
Ignacio
IgnacioOP2y ago
ah. What should I use?
CtrlAltDelMe
CtrlAltDelMe2y ago
You can ask in #marketplace
Ignacio
IgnacioOP2y ago
why is the aws hardware not good for this?
CtrlAltDelMe
CtrlAltDelMe2y ago
Most plans in aws are old CPUs or just CPUs that don't have a great singlecore performance They're not the bestest option to run Minecraft, & I'm assuming you don't need a VPS right? Most of the stuff at #marketplace is good tho. What's your budget out of curiosity
Ignacio
IgnacioOP2y ago
I'm just looking for something that charges based on usage rather than a flat rate
CtrlAltDelMe
CtrlAltDelMe2y ago
Ah I see. Well, it's true that aws offers that thing. But it's worth checking a bit at #marketplace Or making a post Nice PFP btw It's funny lmao
Ignacio
IgnacioOP2y ago
thanks lol
QarthO
QarthO2y ago
disagree with this, the issue with aws is the cost. they offer PLENTY of really nice cpus. its just 10x what you'd pay for from buying a host... then ur also paying for bandwith
CtrlAltDelMe
CtrlAltDelMe2y ago
Thanks for the aclaration I guess it is perhaps of the plan you're getting Do you know how good is the plan he wants to get where it's paid by usage?
QarthO
QarthO2y ago
its a lot more complicated than that. i wouldn't really call it a "plan" you're paying for an instance, then for how long u use the instance, theres 100s of instances you can chose from, then ur payin for attaching storage to the instance, then paying for the bandwith u use (after 1tb) in terms of performance, you can get REALLY great hardware. but the great hardware, even if ur only spinning up the instance for half the day, you'd still save money paying for a host (not on aws). with aws, you'd also have setup crazy logic to spin up/off an instance as ur using it u would need to completely turn off the hardware to not be paying for it so even if u have the mc server off, ur still paying for the instance ( ive used aws for hosting servers cause i get free vouchers thru my work and have min-maxed alot of it)
Discount Milk
Discount Milk2y ago
Even their compute plans have generally worse single core performance than the consumer hardware mc hosts use.
QarthO
QarthO2y ago
The z1d instance isn’t under the compute plan, (atleast last I checked about ~6 months ago) It’s a custom intel processor, but I believe it’s one of their fastest single core. It’s def comparable if not better than something mc hosts use. However I haven’t personally done a benchmark. Since it’s a custom chip would have to do it manually, idk if someone’s done a benchmark comparison already (surely someone has) But prices wise SUPER expensive
Discount Milk
Discount Milk2y ago
Huh til about z1d
QarthO
QarthO2y ago
Yeah It’s very good But aws does a really shit job At advertising and giving benchmark on their stuff They pretty much make u do it urself
Discount Milk
Discount Milk2y ago
BUT You'd be spending $250 a month on 4 cores BEFORE bandwidth calculations.
QarthO
QarthO2y ago
Yup, literally what I said in my post Aws is never the option imo, I only use it cause I can get it for free (kinda)
Discount Milk
Discount Milk2y ago
Plenty an option if you have more money than sense :KEKW:
QarthO
QarthO2y ago
Yup, the infrastructure and control u get is really nice Def more reliable and long term and than any mc host… but ur paying 10x that So even if u try doing a spot instance and running 20% of the time, ur still paying more than just paying full time at a mc host

Did you find this page helpful?