#Server heavy lag, hundreds of ticks behind
55 messages · Page 1 of 1 (latest)
Hi there!
Are you experiencing any lag on the server?
If that's the case, next time it happens and you could run a spark report that can really help us figure out what might be going on!
!spark
Spark
How to provide a Spark sampler.
- Stop your server.
- Download Spark: https://spark.lucko.me/download
- Upload the mod to your server:
Filemanager > mods (for modded servers)
or Filemanager > plugins (for plugin based servers)
(Just drag & drop the file) - Start the server.
- Use the command /spark profiler --only-ticks-over 70
- Wait 10-15 minutes.
- Use the command /spark profiler stop
- Copy the link it generates and paste it here.
@thorn bay Do you still need help with this at all? grabbing that spark report whilst your having lag is a great place to start and will help us dive into troubleshooting.
Hi yes sorry, i posted this last night and just woke up. Ill get the spark report as soon as i can.
That would be awesome
just downloaded it to my server will run asap
should i be in the server while its running or just running it through the console is fine?
Spark can't measure lag that isn't happening, so yes you would have to be on the server! :)
being in server when its lagging is best - the report takes a snapshot of the processes going on at that time... if the lag isnt happening or your not there to trigger them the report is kind meh lol. Is that ok?
Whenever you're playing and find that the server is lagging, start a report, let it run for ~15 minutes or so, then stop it and send it over so we can take a look!
Jupie is spot on, thet're a real angel
gotcha ok, ill log into the server to see if it still is lagging and then ill also run it again later today when more people are on the server to get a better read
also could the server render distance cause the tick issue?
Having a high render distance could definitely put strain on the server resulting in issues, yes
Gotcha ok, yeah i suspected that but my brother who is also running the server with me was insisting that it doesnt
We have the render distance set to 32 atm
Generally, we recommend 10 or less for simulation distance and render distance. Personally I dont go above it much, as it can have impacts on performance
32 is definitely quite high 😬
If you want to be able to see further without putting strain on the server, client side mods like distant horizons or farsight can be a great alternative
Yeah ill probably lower it, unfort everyone likes to be able to see further
Ill have to look into farsight then, ive used distant horizons before personally and its great just takes forever to render the chunks for the first time.
Are there any mods that would help the server have a better time with large render distances?
Chunky/WorldPregenerator!
Then it isn't generating the terrain to show you, it just has to have the memory to keep those ready to send down.
Just keep the simulation distance down.
Exploring any areas outside the pregen will cause lag, so consider a worldborder if going that route.
Gotcha, yeah we have chunky installed server side, would it help also being client side too?
No, what would it do client side?
Idk, i dont know alot about mods and stuff
You couldn't trust the player's PCs to generate world bits and send them up to the server, they could be doing it differently and stuffing in globs of diamonds where they don't belong.
gotcha ok
i stopped the spark profiler, where would it provide the link to copy and share. im looking the console atm but dont see it
Chunky helps by getting all of that terrain generated and put on disk so it isn't happening as you explore - which is the laggy bit.
Here are the commands so you can get generation going:
https://modrinth.com/plugin/chunky
ill check them out, thanks
when you run the command it should just be posted as a response immediately in the console/chat
found it thanks, im just blind apparently
ill run it again when theres a large amount of people online for a better reading
after i get another read later, ill lower the render distance and see if theres a noticeable difference
i was able to run the spark profile again with a bit more lag
Yeah personally I would attribute this to the render and simulation distance being so high.
I looked at a few spark reports I've checked over the past few weeks and with multiple players on spark registered a few hundred chunks, 400 at most
With 3 people on, yours is showing almost 2000 chunks, and almost 4500 entities that the server is trying to keep alive. There's 2200 items on the ground.
I would lower them to the recommended amount and see if you notice any change, if it doesn't improve a new spark report with the lower distances would be super helpful!
this one has a more people
sorry never saw the response
i will go ahead a try that
Yeah 2855 chunks on this one and 6553 entities in this one 😬
yikers
ran it again at 12 render distance
distant horizons was added tho
Make sure to also turn down the simulation distance :)
Even without rendering them you're still keeping chunks around every player actively ticking, so it's still keeping 4500 items alive in over 2000 chunks.
This already looks a whole lot better though! With the simulation distance down we should be pretty much good.
Ah ok, i didnt see an option for simulation distance on the server dashboard but ill check again