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
but I don't know why. I am running about 100 mods at the moment, I can provide a list if necessary.
167 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 soulsender_#0
Take a spark report
More CPU cores wouldn't help, a stronger core would
how do I do that?
I have spark installed
found it
why is it using such little RAM?
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
k
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
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
there wasnt any real lag during this report
but ur cpu is kinda god awful
especially for modded and 10 sim and view distance
shit
let me run another report hold on
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
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
here that's a better one where I was doing more stuff
do u have datapacks
no
should I?
no'
is there anything I can do to improve performance?
theres an integrated gpu, can I somehow use that?
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
I don't know?
how would I check?
I'm not super familar with spark
If you don't know what those are, you aren't using them
Those are startup flags
https://flags.sh remove alwayspretouch. You're supposed to click on java & paste this text in the startup text file
I assume you're selfhosting without pterodactyl
yes I'm using a docker image
Oh that's cool
Remember no alwayspretouch
Reduce sim distance to 3
10 is too high for that processor
is that in a config file or are those jvm arguments?
yeah it's been really fun
Sync chunk writes must be false
There's a file called server.properties
You can find sync chunk writes and sim distance there
where is this setting?
k I changed those
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
nope
thats just the actual flags it uses
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
also that runs soooo much better thank you
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
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
didn't get a single lag drop
Yeah rubidium is client side only
oh lol forgot that was client side only
yep my bad haha
Most of the times rubidium makes servers to crash when present there
interesting okay, I'll remove it
How many players you plan to get there?
4
including me
Pregen the world
And I think you won't have any performance issues
what is pregening?
I suggest chunky instead of the pregen mod you have
also I want to immensely thank you and @ProGamingDK for your help
The act of preloading a Minecraft world
I really appriciate it
Where you load a biiig amount of chunks
I see alright
Because the CPU won't have to be under the heavy stress of world gen
what mod is currently being used for pregening?
I saw a chunk thing in your server mods
chunkpregen (v1.19.4-4.3.0)
^^
Ay np
got rid of it
will do
& rubidium too?
It should not be on the server lol
yep already did
I copied over the mods I had on my client, must have missed that one
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
yeah I already have that in there
Chunky is saying that rubidium is a dependancy
is that normal?
That's strange
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
Chunky doesn't need any dependencies iirc
yeah I thought it was weird lol
You might want a world border mod
must have been either an error or I'm schizophrenic
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
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
Well you don't want your players exploring out of the pregened world
You have plenty of storage?
yeah
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
I see alright
Because having an already loaded world puts the processor in less stress
Idk if stress is the correct word lmao
Lol I got it
does chunky pregen 10k blocks then by default?
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
oh I see so it pregens while the game is running
interesting
Yeah
Of course the game must be running
I thought it was before the world was actually semi-loaded in
idk how to phrase it
before this
This is the initial world load
It just loads the existing world
not even*
only the spawn chunks
that's what I thought
Pregenning is the equivalent of a player going around all the world in a value you can set
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
If you do a 10k radius it'll take like 2 days to be done btw
yikes alright
is that all saved or does it have to do it all over again when you restart the server?
just get 12k worth of cpu ;P
then it takes 20 minutes
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
this might be a really stupid question, but it stores the chunks on disk right?
like not in RAM?
Ofc
On disk
okay that's what I thought
Nothing can be stored in RAM
Or should be
Lmao
ok cool
thanks
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
I will use a world border mod yes
This is the only one I found
Idk if it's client + server
Ot just server
it says 5k blocks will take ~5 hours
that's the one I'm using
Radius is exponential
In Minecraft
We're talking about squares right?
onlinemo.de
Web based Minecraft tools
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?
Tons
The whole drive has 300gb free
SSD right?
Yes
Good good
Well pregenning won't be an issue
Awesome
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
I do lmao, as astra, aether, twilight forest
But that’s fine I’ll just pregen those as well
Chunky has many shape options, square is the preferred
Aether beta?
Well I guess nothing should be weird with it
Not sure I don’t remember
Ad astra shouldn't need a big radius
Afaik there's not lots of content in the planets
Or weird features
How long have you been doing server admin stuff?
!solved
post closed!
The post/thread has been closed!
Requested by soulsender_#0
Good!
Glad I could get that fixed
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
4 years 😛
well
more
but eh
(After pregenning some chunks)
Progamingdk knows way more than me
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
i do that aswell for clients yes
This server is Ubuntu atm and everything runs on docket
Cool
but im going to it-support school on the 13th of august ;p
so atm its all self-taught
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
I will check those out later
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
These all sound great, I want to do as much optimization as I possibly can
Thanks again for your guys help
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)
Is paper more efficient than forge server then?
alot
And you can still do forge mods right?
I’d need to find a docker version
no
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
you could try out fabric
some good performance mods and regular mods
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
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
how come?
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
oh right I didn't think of that
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
ah theres no 1.19.4 version unfortunately
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
how come?
Nah it's just that 1.19.2 has more mods
I've never modded before this haha
fair enough
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
wish I knew that before modding myself :/
oh well I've got a decent mod list
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
well if I ever make another modpack I'll do it on a different version
Essential mods are updated like spark or chunky
I didn't realize that it changed so much in between
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
mean while a plugin developer makes a plugin for 1.5.1 and it still works for 1.20
no work required
Do you like tech?
Like create and AE2?
Or mekanism?
I tried making a datapack before
Although create is analogic tech simulated in digital
I have no idea how people do it, I hated the syntax
I've not tried those before
what are they?
Tech mods are crazy stuffs
Idk what even mekanism does but you can do nuclear reactors
what
Applied engineeristics 2 is like based on storage but with tech
crap neither of those have 1.19.4 versions
I'm unsure what those are for but it's so sci fi
oh well
AE2 straight up skipped 1.19.4 😳
IK WHAT THE HELL
damn it
know any other tech mods?
Even create did that 😳
Yeah that's what I was referring earlier
none of those have a 1.19.4 version :/
Modrinth has a feature to search for tech mods
A filter tag
Immersive Engineering has the right version
know anything about it?
Curseforge does too
Not a lot but it is good
it is a great mod