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
Admincraft Meta
Admincraft Meta8mo ago
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
Skullians
Skullians8mo ago
Uploading a copy of your word is no necessary
DemGlizzys1
DemGlizzys18mo ago
Pregen your world.
Skullians
Skullians8mo ago
!spark Please download this mod / plugin for your server. Then run a profiler via the command /spark profiler start --timeout 300
Carl-bot
Carl-bot8mo 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
Mugetsu
MugetsuOP8mo ago
I have no idea how to do pregen
Skullians
Skullians8mo ago
!chunky
Carl-bot
Carl-bot8mo ago
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
Skullians
Skullians8mo ago
Also a mod ^
DemGlizzys1
DemGlizzys18mo ago
What character is it to get that little box, I can’t get it on my keyboard:why:
Skullians
Skullians8mo ago
this would be nice too, do this and you’ll get a link in the console after 5 minutes ` are you on mobile
DemGlizzys1
DemGlizzys18mo ago
You won’t always be there to send it to me Yes
Skullians
Skullians8mo ago
IOS?
DemGlizzys1
DemGlizzys18mo ago
Yes
Mugetsu
MugetsuOP8mo ago
thanks, I'll try this
Skullians
Skullians8mo ago
go to the number part of the keyboard and hold down the apostrophe button it’s the very left one
DemGlizzys1
DemGlizzys18mo ago
ooo
Mugetsu
MugetsuOP8mo ago
btw I use Paper for my server 1.20.4
DemGlizzys1
DemGlizzys18mo ago
Chunky is a plugin too.
Harrison
Harrison8mo ago
Yeah Both are
Skullians
Skullians8mo ago
^ so is spark
Mugetsu
MugetsuOP8mo ago
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.
Admincraft Meta
Admincraft Meta8mo ago
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
Skullians
Skullians8mo ago
Wow that’s quite bad, 1 moment while I look through it
Mugetsu
MugetsuOP8mo ago
thanks
DemGlizzys1
DemGlizzys18mo ago
I see no issue why are you complaining? /s
Skullians
Skullians8mo ago
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
Mugetsu
MugetsuOP8mo ago
Thanks. I was mostly running defaults. Also I was running the server under MCSS before moving it over to the oracle cloud
Skullians
Skullians8mo ago
MCSS?
Mugetsu
MugetsuOP8mo ago
yeah
Skullians
Skullians8mo ago
what’s that sorry You’re also running out of physical RAM on your machine consider looking at that
Mugetsu
MugetsuOP8mo ago
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.
Skullians
Skullians8mo ago
oh I see Is this on oracle..?
DemGlizzys1
DemGlizzys18mo ago
Ah don’t use windows. Use Linux or something Much lighter
Skullians
Skullians8mo ago
^ Windows is bloated and laggy
Mugetsu
MugetsuOP8mo ago
right now I ran the version on my PC but the oracle cloud one is Linux
Skullians
Skullians8mo ago
Oh okay
Mugetsu
MugetsuOP8mo ago
the lag was the same on both tho
Skullians
Skullians8mo ago
good Yeah, what I said will fix your problems
DemGlizzys1
DemGlizzys18mo ago
Also the analysis from the bit will help !optimize
Carl-bot
Carl-bot8mo ago
You can follow these guides to optimize your server
Admincraft Canned Responses
Mugetsu
MugetsuOP8mo ago
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
Skullians
Skullians8mo ago
(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
Mugetsu
MugetsuOP8mo ago
oh yeah, that was one of the reasons why I was moving it over to the cloud, hosting and playing kills my machine
DemGlizzys1
DemGlizzys18mo ago
After a certain point of allocating RAM you lose performance.
Skullians
Skullians8mo ago
yup this 12GB is where Java begins to struggle on GC
DemGlizzys1
DemGlizzys18mo ago
Just collects junk
Skullians
Skullians8mo ago
^
Mugetsu
MugetsuOP8mo ago
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
Skullians
Skullians8mo ago
:ThumbsUp: do you not have a web panel set up on oracle? would make it easier for managing files and stuff
Mugetsu
MugetsuOP8mo ago
nope, I was using Putty for commands and Filezilla for uploading
DemGlizzys1
DemGlizzys18mo ago
Dude… A panel would be a game changer
Skullians
Skullians8mo ago
Check out Crafty Controller. it’s a super simple to install web panel
Mugetsu
MugetsuOP8mo ago
I'm nearly completely illiterate on running servers, lul. Back in the days of 1.13 MCSS took care of everything
Skullians
Skullians8mo ago
(Just make sure the ports are forwarded through oracle and firewall haha)
Mugetsu
MugetsuOP8mo ago
I got the setup done for the ports
Skullians
Skullians8mo ago
MCSS is kind of dead. Linux + web panel is the best
Mugetsu
MugetsuOP8mo ago
oh
Skullians
Skullians8mo ago
As long as port 80 is forwarded you should be fine for crafty controller
Skullians
Skullians8mo ago
Crafty Controller
Crafty Controller is a cross platform minecraft server controller that you control in your web browser.
Mugetsu
MugetsuOP8mo ago
I mean my machine is windows 10 only but now I have access to oracle linux with the ampere thing
Skullians
Skullians8mo ago
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
Mugetsu
MugetsuOP8mo ago
awesome
Harrison
Harrison8mo ago
Oracle for mc server?
Mugetsu
MugetsuOP8mo ago
oracle cloud with the ampere arm processors, has 24 GB of RAM
DemGlizzys1
DemGlizzys18mo ago
Yeah it’s actually not horrible
Skullians
Skullians8mo ago
^ it’s solid if you do optimisations
Mugetsu
MugetsuOP8mo ago
it has to be better than hosting on the same machine I play, and my PC is kinda old, it's an i7 4790
Skullians
Skullians8mo ago
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
Mugetsu
MugetsuOP8mo ago
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
Mugetsu
MugetsuOP8mo ago
No description
Skullians
Skullians8mo ago
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!
Mugetsu
MugetsuOP8mo ago
thanks
Harrison
Harrison8mo ago
gotcha
Mugetsu
MugetsuOP8mo ago
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
Skullians
Skullians8mo ago
Okay :) Have you removed Enhanced Villagers or whatever it is called
Mugetsu
MugetsuOP8mo ago
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
Skullians
Skullians8mo ago
Yeah most definitely, realistically you want to pregen with no players so it is quicker but doesn’t matter
Mugetsu
MugetsuOP8mo ago
: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
Cooleg
Cooleg8mo ago
damn bro
No description
Cooleg
Cooleg8mo ago
nbt doing the plugin dirty
Mugetsu
MugetsuOP8mo ago
holy hecc I didn't think it was that bad
ProGamingDk
ProGamingDk8mo ago
well no, its also doing itself dirty its literally getting nbt data of every single villager from what it looks like with the method
Skullians
Skullians8mo ago
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.
Mugetsu
MugetsuOP8mo ago
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
Skullians
Skullians8mo ago
Oh, nice!
Mugetsu
MugetsuOP8mo ago
: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?
Cooleg
Cooleg8mo ago
Use 21 as 22 has reportedly caused issues for some people
Mugetsu
MugetsuOP8mo ago
how do I install that one? the java -version command only gave me 19 as the latest version to install
Cooleg
Cooleg8mo ago
why are you running linux with no knowledge how to run it
Mugetsu
MugetsuOP8mo ago
Because the oracle cloud server can't operate with windows if I keep it to Always Free
ProGamingDk
ProGamingDk8mo ago
java -version isnt what version to install its the version currently running
Mugetsu
MugetsuOP8mo ago
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
Mugetsu
MugetsuOP8mo ago
thanks I'm gonna be checking this
Snowz
Snowz8mo ago
How could I just tell this was an offline server just looking at this embed 😂
DogeConomy
DogeConomy8mo ago
The default Alex skin
Snowz
Snowz8mo ago
Didn’t even notice that. Was just the horrible performance
Mugetsu
MugetsuOP8mo ago
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
Skullians
Skullians8mo ago
sweet :)
Mugetsu
MugetsuOP7mo ago
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.
Admincraft Meta
Admincraft Meta7mo ago
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
Snowz
Snowz7mo ago
horrible
Mugetsu
MugetsuOP7mo ago
oof
NieGestorben
NieGestorben7mo ago
The lag is caused by commands, what were you trying to do lol
Mugetsu
MugetsuOP7mo ago
I actually didn't input any commands but I think something similar. I was trying to run custom mobs from model engine/mythicmobs
ProGamingDk
ProGamingDk7mo ago
datapacks are the issue here or customfunctions (generally datapacks) https://docs.bloom.host/datapacks/#disclaimer + https://misode.github.io/report/ follow these
Mugetsu
MugetsuOP7mo ago
thanks, I'll check that
1who¡ssus?
1who¡ssus?7mo ago
!offline
ProGamingDk
ProGamingDk7mo ago
oh offline-mode cringe
1who¡ssus?
1who¡ssus?7mo ago
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 😚
Mugetsu
MugetsuOP7mo ago
just for the record, I actually have Minecraft lol, bought it long ago.
Admincraft Meta
Admincraft Meta7mo 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
Mugetsu
MugetsuOP7mo ago
tried to send the zip from the profiler how do I share a report from misode?
1who¡ssus?
1who¡ssus?7mo ago
Server is !offline tho
Mugetsu
MugetsuOP7mo ago
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.
Admincraft Meta
Admincraft Meta7mo ago
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
Mugetsu
MugetsuOP7mo ago
ok, removed some more and got a major improvement, but for the other stuff like MSPT, what values shoild I be aiming for?
Mugetsu
MugetsuOP7mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta7mo ago
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
Skullians
Skullians7mo ago
They all look fine. It’s still datapacks causing 70% of your lag
Mugetsu
MugetsuOP7mo ago
Alright
Mugetsu
MugetsuOP7mo ago
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.
Admincraft Meta
Admincraft Meta7mo ago
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
Skullians
Skullians7mo ago
again the only reason you are lagging is because of datapacks it is 70% of your lag the rest is normal server
Mugetsu
MugetsuOP7mo ago
Oh, I see. Thanks, I'll look into that again
Mugetsu
MugetsuOP7mo ago
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
No description
Mugetsu
MugetsuOP7mo ago
the options I get
No description
Mugetsu
MugetsuOP7mo ago
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.
Admincraft Meta
Admincraft Meta7mo ago
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
1who¡ssus?
1who¡ssus?7mo ago
Your MC version won't boot without java 21
Mugetsu
MugetsuOP7mo ago
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
ProGamingDk
ProGamingDk7mo ago
only 1.20.5+ needs it might actually just be 1.20.6+

Did you find this page helpful?