Server keeps lagging behind and I don't know why

I've added 8gb of RAM and my internet connection is fine. I don't see any way to give minecraft more CPU cores either. I still get the message
Can't keep up! Is the server overloaded? Running 2029ms or 40 ticks behind
Can't keep up! Is the server overloaded? Running 2029ms or 40 ticks behind
but I don't know why. I am running about 100 mods at the moment, I can provide a list if necessary.
167 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 soulsender_#0
MrMcyeet
MrMcyeet2y ago
Take a spark report More CPU cores wouldn't help, a stronger core would
Soulsender
SoulsenderOP2y ago
how do I do that? I have spark installed
Soulsender
SoulsenderOP2y ago
No description
Soulsender
SoulsenderOP2y ago
found it why is it using such little RAM?
ProGamingDk
ProGamingDk2y ago
it doesnt need more might have been just after a gc do /spark profiler start --timeout 300 and send link when u get it in 5 minutes
Soulsender
SoulsenderOP2y ago
k
Soulsender
SoulsenderOP2y ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by soulsender_#0
ProGamingDk
ProGamingDk2y ago
there wasnt any real lag during this report but ur cpu is kinda god awful especially for modded and 10 sim and view distance
Soulsender
SoulsenderOP2y ago
shit let me run another report hold on
Soulsender
SoulsenderOP2y ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by soulsender_#0
Soulsender
SoulsenderOP2y ago
here that's a better one where I was doing more stuff
ProGamingDk
ProGamingDk2y ago
do u have datapacks
Soulsender
SoulsenderOP2y ago
no should I?
ProGamingDk
ProGamingDk2y ago
no'
Soulsender
SoulsenderOP2y ago
is there anything I can do to improve performance? theres an integrated gpu, can I somehow use that?
1who¡ssus?
1who¡ssus?2y ago
No Minecraft servers don't use GPU at all Do you use akair flags? @Soulsender Spark fucks up flag displaying in forge servers idk why So idk what I'm looking at lol
Soulsender
SoulsenderOP2y ago
I don't know? how would I check? I'm not super familar with spark
1who¡ssus?
1who¡ssus?2y ago
If you don't know what those are, you aren't using them Those are startup flags
1who¡ssus?
1who¡ssus?2y ago
https://flags.sh remove alwayspretouch. You're supposed to click on java & paste this text in the startup text file
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
1who¡ssus?
1who¡ssus?2y ago
I assume you're selfhosting without pterodactyl
Soulsender
SoulsenderOP2y ago
yes I'm using a docker image
1who¡ssus?
1who¡ssus?2y ago
Oh that's cool Remember no alwayspretouch Reduce sim distance to 3 10 is too high for that processor
Soulsender
SoulsenderOP2y ago
is that in a config file or are those jvm arguments? yeah it's been really fun
1who¡ssus?
1who¡ssus?2y ago
Sync chunk writes must be false There's a file called server.properties You can find sync chunk writes and sim distance there
Soulsender
SoulsenderOP2y ago
where is this setting? k I changed those
1who¡ssus?
1who¡ssus?2y ago
It's not a setting, it's an argument in the startup flags In this thing To apply changes you'll have to restart Usually these basic settings help a lot
ProGamingDk
ProGamingDk2y ago
nope thats just the actual flags it uses
1who¡ssus?
1who¡ssus?2y ago
Yeah I mean I know it's normal flags But nothing like that appears in fabric lol Btw you aren't supposed to have rubidium in your server
Soulsender
SoulsenderOP2y ago
also that runs soooo much better thank you
Soulsender
SoulsenderOP2y ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by soulsender_#0
Soulsender
SoulsenderOP2y ago
didn't get a single lag drop
1who¡ssus?
1who¡ssus?2y ago
Yeah rubidium is client side only
Soulsender
SoulsenderOP2y ago
oh lol forgot that was client side only yep my bad haha
1who¡ssus?
1who¡ssus?2y ago
Most of the times rubidium makes servers to crash when present there
Soulsender
SoulsenderOP2y ago
interesting okay, I'll remove it
1who¡ssus?
1who¡ssus?2y ago
How many players you plan to get there?
Soulsender
SoulsenderOP2y ago
4 including me
1who¡ssus?
1who¡ssus?2y ago
Pregen the world And I think you won't have any performance issues
Soulsender
SoulsenderOP2y ago
what is pregening?
1who¡ssus?
1who¡ssus?2y ago
I suggest chunky instead of the pregen mod you have
Soulsender
SoulsenderOP2y ago
also I want to immensely thank you and @ProGamingDK for your help
1who¡ssus?
1who¡ssus?2y ago
The act of preloading a Minecraft world
Soulsender
SoulsenderOP2y ago
I really appriciate it
1who¡ssus?
1who¡ssus?2y ago
Where you load a biiig amount of chunks
Soulsender
SoulsenderOP2y ago
I see alright
1who¡ssus?
1who¡ssus?2y ago
Because the CPU won't have to be under the heavy stress of world gen
Soulsender
SoulsenderOP2y ago
what mod is currently being used for pregening?
1who¡ssus?
1who¡ssus?2y ago
I saw a chunk thing in your server mods chunkpregen (v1.19.4-4.3.0)
ProGamingDk
ProGamingDk2y ago
^^
1who¡ssus?
1who¡ssus?2y ago
Ay np
Soulsender
SoulsenderOP2y ago
got rid of it will do
1who¡ssus?
1who¡ssus?2y ago
& rubidium too? It should not be on the server lol
Soulsender
SoulsenderOP2y ago
yep already did I copied over the mods I had on my client, must have missed that one
1who¡ssus?
1who¡ssus?2y ago
I see heh I saw you had a dynamic lights one, those usually are not needed server side Mod suggestion: https://www.curseforge.com/minecraft/mc-mods/starlight-forge Serverside only Fixes Mojang's old crappy lighting engine Well It fully replaces it lol
Soulsender
SoulsenderOP2y ago
yeah I already have that in there Chunky is saying that rubidium is a dependancy is that normal?
1who¡ssus?
1who¡ssus?2y ago
That's strange
Soulsender
SoulsenderOP2y ago
maybe not? I swear I saw it but I restarted the server again and I can't find it in the logs now :/ yeah nevermind I think that's nothing to worry about
1who¡ssus?
1who¡ssus?2y ago
Chunky doesn't need any dependencies iirc
Soulsender
SoulsenderOP2y ago
yeah I thought it was weird lol
1who¡ssus?
1who¡ssus?2y ago
You might want a world border mod
Soulsender
SoulsenderOP2y ago
must have been either an error or I'm schizophrenic
1who¡ssus?
1who¡ssus?2y ago
From my experience, players do not listen when telling them to not go beyond a coordinate LOL https://www.curseforge.com/minecraft/mc-mods/world-border I found this one for forge
Soulsender
SoulsenderOP2y ago
how badly do you think I need this? I'd rather not influence gameplay but if you think it's necessary then I trust your judgement
1who¡ssus?
1who¡ssus?2y ago
Well you don't want your players exploring out of the pregened world You have plenty of storage?
Soulsender
SoulsenderOP2y ago
yeah
1who¡ssus?
1who¡ssus?2y ago
You can leave it two days pregenning 10k radius in the overworld But you don't want players going to x=11000 or so That defeats the purpose of pregenning
Soulsender
SoulsenderOP2y ago
I see alright
1who¡ssus?
1who¡ssus?2y ago
Because having an already loaded world puts the processor in less stress Idk if stress is the correct word lmao
Soulsender
SoulsenderOP2y ago
Lol I got it does chunky pregen 10k blocks then by default?
1who¡ssus?
1who¡ssus?2y ago
You have to tell it to do so It shows the progress Via logs and in game to OPs You don't wanna play while pregenning tho
Soulsender
SoulsenderOP2y ago
oh I see so it pregens while the game is running interesting
1who¡ssus?
1who¡ssus?2y ago
Yeah Of course the game must be running
Soulsender
SoulsenderOP2y ago
I thought it was before the world was actually semi-loaded in idk how to phrase it
Soulsender
SoulsenderOP2y ago
before this
No description
1who¡ssus?
1who¡ssus?2y ago
This is the initial world load It just loads the existing world
ProGamingDk
ProGamingDk2y ago
not even* only the spawn chunks
Soulsender
SoulsenderOP2y ago
that's what I thought
1who¡ssus?
1who¡ssus?2y ago
Pregenning is the equivalent of a player going around all the world in a value you can set
Soulsender
SoulsenderOP2y ago
and chunky is going to load even more chunks and just hold those ready for when people wander into them rather than trying to load them WHEN someone wanders into them
1who¡ssus?
1who¡ssus?2y ago
If you do a 10k radius it'll take like 2 days to be done btw
Soulsender
SoulsenderOP2y ago
yikes alright is that all saved or does it have to do it all over again when you restart the server?
ProGamingDk
ProGamingDk2y ago
just get 12k worth of cpu ;P then it takes 20 minutes
1who¡ssus?
1who¡ssus?2y ago
Chunky will load those chunks for the server so the server doesn't have to struggle with world gen. This is way better than a player walking around in a world where the processor is constantly processing new chunks Ofc it stores It's like normal chunks I kind of not knew that
Soulsender
SoulsenderOP2y ago
this might be a really stupid question, but it stores the chunks on disk right? like not in RAM?
1who¡ssus?
1who¡ssus?2y ago
Ofc On disk
Soulsender
SoulsenderOP2y ago
okay that's what I thought
1who¡ssus?
1who¡ssus?2y ago
Nothing can be stored in RAM Or should be Lmao
Soulsender
SoulsenderOP2y ago
ok cool thanks
1who¡ssus?
1who¡ssus?2y ago
Tell your players to be extra careful with not going beyond 10k blocks in any direction Or use a world border mod My community did not listen at all to world limits lmfao
Soulsender
SoulsenderOP2y ago
I will use a world border mod yes
1who¡ssus?
1who¡ssus?2y ago
This is the only one I found Idk if it's client + server Ot just server
Soulsender
SoulsenderOP2y ago
it says 5k blocks will take ~5 hours that's the one I'm using
1who¡ssus?
1who¡ssus?2y ago
Radius is exponential In Minecraft We're talking about squares right?
1who¡ssus?
1who¡ssus?2y ago
onlinemo.de
Web based Minecraft tools
1who¡ssus?
1who¡ssus?2y ago
Take a look at world size calculator in this website A 4k radius is only around 4gb I mean 2,72GB Yet a 7K radius gets to 8GB How much storage do you have for the server?
Soulsender
SoulsenderOP2y ago
Tons The whole drive has 300gb free
1who¡ssus?
1who¡ssus?2y ago
SSD right?
Soulsender
SoulsenderOP2y ago
Yes
1who¡ssus?
1who¡ssus?2y ago
Good good Well pregenning won't be an issue
Soulsender
SoulsenderOP2y ago
Awesome
1who¡ssus?
1who¡ssus?2y ago
The wordfile won't even be bigger than 40 gb assuming you don't have lots of dimension mods For overworld I'd make 10k For the nether I made like 6500 block radius For the end 8k or greater All square shape btw
Soulsender
SoulsenderOP2y ago
I do lmao, as astra, aether, twilight forest But that’s fine I’ll just pregen those as well
1who¡ssus?
1who¡ssus?2y ago
Chunky has many shape options, square is the preferred Aether beta? Well I guess nothing should be weird with it
Soulsender
SoulsenderOP2y ago
Not sure I don’t remember
1who¡ssus?
1who¡ssus?2y ago
Ad astra shouldn't need a big radius Afaik there's not lots of content in the planets Or weird features
Soulsender
SoulsenderOP2y ago
How long have you been doing server admin stuff? !solved
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by soulsender_#0
Soulsender
SoulsenderOP2y ago
Good! Glad I could get that fixed
1who¡ssus?
1who¡ssus?2y ago
I started in summer last year I suggest to get the players in there when you can, the real server performance is tested when players do things :p
ProGamingDk
ProGamingDk2y ago
4 years 😛 well more but eh
1who¡ssus?
1who¡ssus?2y ago
(After pregenning some chunks) Progamingdk knows way more than me
Soulsender
SoulsenderOP2y ago
Do you work as a sysadmin? Yeah we will have to see haha I’ve been running my homeserver for about half a year now, but I’ve been doing Linux VPS stuff for like two years now or something like that
ProGamingDk
ProGamingDk2y ago
i do that aswell for clients yes
Soulsender
SoulsenderOP2y ago
This server is Ubuntu atm and everything runs on docket Cool
ProGamingDk
ProGamingDk2y ago
but im going to it-support school on the 13th of august ;p so atm its all self-taught
1who¡ssus?
1who¡ssus?2y ago
I use a few mods from a dev called someaddon which are pretty good, I always use them and I don't have issues with them My faves are https://legacy.curseforge.com/minecraft/mc-mods/smooth-chunk-save https://www.curseforge.com/minecraft/mc-mods/chunk-sending-forge-fabric https://www.curseforge.com/minecraft/mc-mods/leaky
Soulsender
SoulsenderOP2y ago
I will check those out later
1who¡ssus?
1who¡ssus?2y ago
Structure essentials is also good There's one called limited chunk loading, it's intended to use on servers that use chunk loaders tools, and such. I personally do not use it
Soulsender
SoulsenderOP2y ago
These all sound great, I want to do as much optimization as I possibly can Thanks again for your guys help
1who¡ssus?
1who¡ssus?2y ago
Just scrolling to this to tell you that Minecraft is mostly single threaded and USUALLY giving more cores won't make the game to take better advantage of them (Well.. this is a half lie. In forge, yes, everything tends to be around single core performance. But paper, a server software, takes advantage of additional threads to run async tasks like chunk loading or the server chat)
Soulsender
SoulsenderOP2y ago
Is paper more efficient than forge server then?
ProGamingDk
ProGamingDk2y ago
alot
Soulsender
SoulsenderOP2y ago
And you can still do forge mods right? I’d need to find a docker version
ProGamingDk
ProGamingDk2y ago
no
1who¡ssus?
1who¡ssus?2y ago
Nono Plugins That's what they use But no mods And do not look for server software that says something about mixing some stuff called bukkit API (or spigot API) and forge API
snowznz.bak
snowznz.bak2y ago
you could try out fabric some good performance mods and regular mods
Soulsender
SoulsenderOP2y ago
I've used fabric and it's what I liked more than forge I started developing a shitty fabric mod for fun actually but many of the mods I wanted to use didn't have fabric versions my friends and I really wanted to use some classic nostalga mods like mutant creatures and the aether and twilight forest
1who¡ssus?
1who¡ssus?2y ago
The big fabric issue there Wait twilight forest is on fabric tho The aether has a planned fork To fabric Amazing for development, limited for players that just want to play It saddens me that you're not using quark lol It's a cool mod full of random shenanigans And decoration things You will need to Regen the world you have rn if you add other structure or world gen mods In fact before pregenning you want to have your mod list 100% ready
Soulsender
SoulsenderOP2y ago
how come?
1who¡ssus?
1who¡ssus?2y ago
So if you already have the world done And you add a mod that changes something, these changes only happen in new chunks Not in already existing chunks With something I mean.. like structures Or a new biome
Soulsender
SoulsenderOP2y ago
oh right I didn't think of that
1who¡ssus?
1who¡ssus?2y ago
E.g. quark adds some minerals in caves. Caves made without quark won't have those minerals It's a cool mod overall Small utils
Soulsender
SoulsenderOP2y ago
ah theres no 1.19.4 version unfortunately
1who¡ssus?
1who¡ssus?2y ago
Didn't noticed you were in 1.19.4 Weird version for Minecraft modding imo Well I've seen a guy on 1.19.3 lol
Soulsender
SoulsenderOP2y ago
how come?
1who¡ssus?
1who¡ssus?2y ago
Nah it's just that 1.19.2 has more mods
Soulsender
SoulsenderOP2y ago
I've never modded before this haha fair enough
1who¡ssus?
1who¡ssus?2y ago
As of now Between 1.19.3 and 1.19.4 the game changed internally a lot. This means that updating the mods will be pain for the devs. Many of them have decided to just wait for 1.20.1 I guess the quark dev is doing that And 1.19.2 is like the non spoken standard For modern Minecraft modding It used to be 1.18.2 but it's kind of decaying from what I've seen ngl I mean it is still rocking But some devs are dropping 1.18.2
Soulsender
SoulsenderOP2y ago
wish I knew that before modding myself :/ oh well I've got a decent mod list
1who¡ssus?
1who¡ssus?2y ago
I mean many mod devs have done the change Like this guy called Yung and his amazing structure hauling mods But I've got a big fabric server that if I moved to 1.19.4, 1/4 of the mods would vanish And like Meh
Soulsender
SoulsenderOP2y ago
well if I ever make another modpack I'll do it on a different version
1who¡ssus?
1who¡ssus?2y ago
Essential mods are updated like spark or chunky
Soulsender
SoulsenderOP2y ago
I didn't realize that it changed so much in between
1who¡ssus?
1who¡ssus?2y ago
Now that you've made the server in 1.19.4, just stay there (Forge devs are built different lmao) But fabric and forge devs? Those are the MVPs
snowznz.bak
snowznz.bak2y ago
mean while a plugin developer makes a plugin for 1.5.1 and it still works for 1.20 no work required
1who¡ssus?
1who¡ssus?2y ago
Do you like tech? Like create and AE2? Or mekanism?
Soulsender
SoulsenderOP2y ago
I tried making a datapack before
1who¡ssus?
1who¡ssus?2y ago
Although create is analogic tech simulated in digital
Soulsender
SoulsenderOP2y ago
I have no idea how people do it, I hated the syntax I've not tried those before what are they?
1who¡ssus?
1who¡ssus?2y ago
Tech mods are crazy stuffs Idk what even mekanism does but you can do nuclear reactors
Soulsender
SoulsenderOP2y ago
what
1who¡ssus?
1who¡ssus?2y ago
Applied engineeristics 2 is like based on storage but with tech
Soulsender
SoulsenderOP2y ago
crap neither of those have 1.19.4 versions
1who¡ssus?
1who¡ssus?2y ago
I'm unsure what those are for but it's so sci fi
Soulsender
SoulsenderOP2y ago
oh well
1who¡ssus?
1who¡ssus?2y ago
AE2 straight up skipped 1.19.4 😳
Soulsender
SoulsenderOP2y ago
IK WHAT THE HELL damn it know any other tech mods?
1who¡ssus?
1who¡ssus?2y ago
Even create did that 😳 Yeah that's what I was referring earlier
Soulsender
SoulsenderOP2y ago
none of those have a 1.19.4 version :/
1who¡ssus?
1who¡ssus?2y ago
Modrinth has a feature to search for tech mods A filter tag
Soulsender
SoulsenderOP2y ago
Immersive Engineering has the right version know anything about it?
1who¡ssus?
1who¡ssus?2y ago
Curseforge does too Not a lot but it is good
ProGamingDk
ProGamingDk2y ago
it is a great mod

Did you find this page helpful?