Unplayable server lag
Hello. I have no idea why my Minecraft server is lagging badly enough to the point of being unplayable. I was self hosting but then got the free oracle cloud server and even on it, everything goes way too slowly, I get a few "Can't keep up" warning messages in the console and that's it. I would like to upload a copy of my world if that's ok and hopefully someone could try doing test runs with it, I've been looking all over the net but found no explicit solutions, I dunno if it's the data packs or some plugin in specific.
I'll wait for a staff response before uploading the copy of my world to be sure, if there is no issue with it.
134 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 mugetsu91#0
Uploading a copy of your word is no necessary
Pregen your world.
!spark Please download this mod / plugin for your server.
Then run a profiler via the command
/spark profiler start --timeout 300
Spark Profiler
Spark can be used to see why your server or client is lagging.
https://spark.lucko.me/
Admincraft Canned Responses
I have no idea how to do pregen
!chunky
Plugin: Chunky
Chunky is a plugin that will load chunks in a defined radius into server memory, making it easier, and less performance impacting on your server when a player loads those chunks.
If you've setup a worldborder, start with by typing
/chunky worldborder
. Otherwise, you can set a radius using /chunky radius #
. Then run /chunky start
.
It is a good idea to let this run with no players online. If your server does crash, just start it back up and /chunky resume
and it should pick back up where it left off.
Once it tells you that the task is finished, you may remove the chunky plugin folder and the Chunky .jar from your server.Admincraft Canned Responses
Also a mod ^
What character is it to get that little box, I can’t get it on my keyboard:why:
this would be nice too, do this and you’ll get a link in the console after 5 minutes
`
are you on mobile
You won’t always be there to send it to me
Yes
IOS?
Yes
thanks, I'll try this
go to the number part of the keyboard and hold down the apostrophe button
it’s the very left one
ooo
btw I use Paper for my server
1.20.4
Chunky is a plugin too.
Yeah
Both are
^ so is spark
I got the spark profile done, this what it gave: https://spark.lucko.me/zRD658sMUE
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using
Paper-496 (1.20.4)
. Latest currently is 1.20.6
.❌ Aikar's Flags
❌ spawn-limits.water-ambient
Decrease this in bukkit.yml.
Recommended: 5.
❌ spawn-limits.ambient
Decrease this in bukkit.yml.
Recommended: 1.
❌ spawn-limits.animals
Decrease this in bukkit.yml.
Recommended: 5.
❌ entity-activation-range.water
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.villagers
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.wake-up-inactive.villagers-for
Decrease this in spigot.yml.
Recommended: 20.
❌ entity-activation-range.wake-up-inactive.flying-monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ entity-activation-range.wake-up-inactive.villagers-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-for
Decrease this in spigot.yml.
Recommended: 40.
❌ entity-activation-range.wake-up-inactive.monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 4.
Requested by mugetsu91#0 • Page 1 of 2
Wow that’s quite bad, 1 moment while I look through it
thanks
I see no issue why are you complaining?
/s
Okay.
First of all, you’re offline mode which we’re not meant to help, however:
- RealisticVillagers is causing ALL your lag. Get that plugin off ASAP.
- your view and sim distance is too high, 8 view max and 6 sim max.
- citizens is often laggy, consider getting ZNCPS+
You have 395 armor stands you may want to remove
Don’t allocate more than 12GB ram to a single server
that is also causing lag
Use Aikar flags
Thanks. I was mostly running defaults. Also I was running the server under MCSS before moving it over to the oracle cloud
MCSS?
yeah
what’s that
sorry
You’re also running out of physical RAM on your machine consider looking at that
MC Server Soft - Free Minecraft Server Wrapper UI for Windows
A completely free server manager that you easily can host Minecraft servers with. Mcss is the oldest maintained Minecraft Server Wrapper for Windows.
oh
I see
Is this on oracle..?
Ah don’t use windows. Use Linux or something
Much lighter
^
Windows is bloated and laggy
right now I ran the version on my PC but the oracle cloud one is Linux
Oh okay
the lag was the same on both tho
good
Yeah, what I said will fix your problems
Also the analysis from the bit will help
!optimize
You can follow these guides to optimize your server
Admincraft Canned Responses
I see a bit of a paradox between running out of RAM and not being able to allocate more than 12GB, how would one solve that
(Use eternity paper’s guide)
Your Xmx flag should not be higher than 12GB
However, the physical RAM (aka. Total ram on your machine) was running out
that’s what I was commenting on
oh
yeah, that was one of the reasons why I was moving it over to the cloud, hosting and playing kills my machine
After a certain point of allocating RAM you lose performance.
yup
this
12GB is where Java begins to struggle on GC
Just collects junk
^
it's the exact same world, but ran the windows self host since it's easier to grab files and stuff, but I would intend to fix everything I could and then upload to oracle
:ThumbsUp: do you not have a web panel set up on oracle?
would make it easier for managing files and stuff
nope, I was using Putty for commands and Filezilla for uploading
Dude…
A panel would be a game changer
Check out Crafty Controller.
it’s a super simple to install web panel
I'm nearly completely illiterate on running servers, lul. Back in the days of 1.13 MCSS took care of everything
(Just make sure the ports are forwarded through oracle and firewall haha)
I got the setup done for the ports
MCSS is kind of dead. Linux + web panel is the best
oh
As long as port 80 is forwarded you should be fine
for crafty controller
Crafty Controller
Crafty Controller is a cross platform minecraft server controller that you control in your web browser.
I mean my machine is windows 10 only but now I have access to oracle linux with the ampere thing
Yeah ;)
You would install crafty controller on oracle
So you can access it from the internet
and you can visually see the console, upload and manage files & configs
from that website
awesome
Oracle for mc server?
oracle cloud with the ampere arm processors, has 24 GB of RAM
Yeah it’s actually not horrible
^
it’s solid if you do optimisations
it has to be better than hosting on the same machine I play, and my PC is kinda old, it's an i7 4790
yeah, oracle ARM CPUs aren’t the fastest but you can run Linux, which isn’t as bloated as windows + more freedom etc
And it’s not your main pc, so half the cpu isn’t getting used up when playing mc xd
yep
do I need to repost the profiler to trigger the Admincraft bot's recommendations? Can't see page 2 of the recommended tweaks anymore
https://eternity.community/index.php/paper-optimization check out this guide instead.
Paper Chan hideout
Paper chan's Little Guide to Minecraft Server Optimization!
The most complete Minecraft server optimization guide with everything you need to know about running a Paper Minecraft server plus Paper Chan!
thanks
gotcha
I've done all the tweaks in the guide, I have chunky pregenerating the world, I'll port stuff over to the oracle cloud and run the profiler again when that's done
Okay :)
Have you removed Enhanced Villagers or whatever it is called
realistic villagers, yeah I deleted the plugin
performance is still a bit laggy but improved a lot, current lag is probably both from chunky and from hosting and playing on the same machine
Yeah most definitely, realistically you want to pregen with no players so it is quicker but doesn’t matter
:worrythumbsup:
Hello again. I just found out crafty controller isn't supported on oracle linux. Should I remake the oracle cloud VM with ubuntu? I don't have anything to lose afaik if I just remake the thing with the same specs other than the OS. The pregen is still in process but I paused it
damn bro
nbt doing the plugin dirty
holy hecc
I didn't think it was that bad
well no, its also doing itself dirty
its literally getting nbt data of every single villager
from what it looks like with the method
Go for it if you want. Didn’t realise it didn’t support oracle Linux. Crafty isn’t needed, you can live without it if you want.
Thanks. I saw videos of it and it's quite nice. I went and grabbed ubuntu, had to suffer through some pain as I'm very much not used to Linux but finally got it all setup, right now I'm setting up the dashboard to upload my server and then I'll resume the chunky pregen
Oh, nice!
:pacha_bueno:
Hello again. I've largely set things up but I'm running into an issue, the java JDK I got is version 19 and some plugins like geyser are giving me an error saying that the version is too old. Does anyone know how to install jdk 22 on ubuntu?
Use 21 as 22 has reportedly caused issues for some people
how do I install that one?
the java -version command only gave me 19 as the latest version to install
why are you running linux with no knowledge how to run it
Because the oracle cloud server can't operate with windows if I keep it to Always Free
java -version isnt what version to install
its the version currently running
when I ran the command the output was something along the lines of "java is currently not installed but it can be installed by..." and then it gave me a list of like 4 versions with their respective command, 19 was the latest one there
thanks I'm gonna be checking this
How could I just tell this was an offline server just looking at this embed 😂
The default Alex skin
Didn’t even notice that. Was just the horrible performance
lol, I hadn't even noticed. I own both java and bedrock version on windows tho, even have a few capes
at least I got the server running on oracle cloud running well, have it busy doing chunk pregen. I'll be testing it again after it finishes
sweet :)
Hello. Took me a while to get everything up and running again on the oracle server, ran the profiler once more, just wondering how good or bad these results are https://spark.lucko.me/vjCxDt0X0u
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using
Paper-497 (1.20.4)
. Latest currently is 1.21
.❌ Aikar's Flags
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-max-per-tick
Decrease this in spigot.yml.
Recommended: 2.
❌ entity-activation-range.wake-up-inactive.monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ arrow-despawn-rate
Decrease this in spigot.yml.
Recommended: 300.
❌ chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.snowball
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.ender_pearl
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.arrow
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by mugetsu91#0
horrible
oof
The lag is caused by commands, what were you trying to do lol
I actually didn't input any commands
but I think something similar. I was trying to run custom mobs from model engine/mythicmobs
datapacks are the issue here
or customfunctions (generally datapacks)
https://docs.bloom.host/datapacks/#disclaimer + https://misode.github.io/report/
follow these
thanks, I'll check that
!offline
oh offline-mode cringe
Kinda nasty fore to pull !offline because I have been an offline mode user for a long time
It's never too late to repent & join the online gang 😚
just for the record, I actually have Minecraft lol, bought it long ago.
For safety reasons we do not allow executables to be sent as they might contain malware. If you're compiling for someone please DM them and as a reminder. We cannot verify if a compiled jar has not been tampered in any way
tried to send the zip from the profiler
how do I share a report from misode?
Server is !offline tho
removed a few data packs and the tps increased from 4 to 8 https://spark.lucko.me/HSjlpEOVtv
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using
Paper-497 (1.20.4)
. Latest currently is 1.21
.❌ Aikar's Flags
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-max-per-tick
Decrease this in spigot.yml.
Recommended: 2.
❌ entity-activation-range.wake-up-inactive.monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ arrow-despawn-rate
Decrease this in spigot.yml.
Recommended: 300.
❌ chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.snowball
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.ender_pearl
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.arrow
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by mugetsu91#0
ok, removed some more and got a major improvement, but for the other stuff like MSPT, what values shoild I be aiming for?
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 19.
Requested by mugetsu91#0
They all look fine.
It’s still datapacks causing 70% of your lag
Alright
after I let the server run for several hours I got this result https://spark.lucko.me/pFQeWZW5iM
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using
Paper-497 (1.20.4)
. Latest currently is 1.21
.❌ Aikar's Flags
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-max-per-tick
Decrease this in spigot.yml.
Recommended: 2.
❌ entity-activation-range.wake-up-inactive.monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ arrow-despawn-rate
Decrease this in spigot.yml.
Recommended: 300.
❌ chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.snowball
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.ender_pearl
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.arrow
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by mugetsu91#0
again
the only reason you are lagging is because of datapacks
it is 70% of your lag
the rest is normal server
Oh, I see. Thanks, I'll look into that again
I'm using crafty but by default I don't see a way to implement aikar's flags unless I mess with the execution command setting. Also, I wonder if I should override java because it might not be using version 21 but I dunno for sure
the options I get
ok, I havent touched the data packs yet but aikar's flags and idk if setting it to java 21 seem to have boosted things https://spark.lucko.me/rEsyDf3rDS
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using
Paper-497 (1.20.4)
. Latest currently is 1.21
.❌ Aikar's Flags
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
Requested by mugetsu91#0
Your MC version won't boot without java 21
That's weird because I remember oracle linux forcing me to use java 17 I think, and it was this same server
the oracle machine now has ubuntu tho
only 1.20.5+ needs it
might actually just be 1.20.6+