Why is my server lagging so badly whenever I connect?
My server lags so badly whenever I connect.
When I am disconnected, the server runs very smoothly for others with no lags (tps 20 all the time).
I asked the same question to the paper discord but couldn't get the answer.
Somehow, spark shows that my server only uses 1 thread of my cpu even it has authority to use all.
So I added "-XX:ActiveProcessorCount=6" to my start bat file.
It used 20 thread after I added the code but had the same problem of lagging when I connect, and for worse, it came back to using only 1 thread after that
even though the code was added.
I think the lagging problem is all about the server only using 1thread, but I can't find out how to change it.
The server somehow worked for 3days in the begining.
Bellow is my spark url and latest log
(+I am not good at both English and codding. I start learning about "how to open minecraft server" 5days ago and ended up here)
https://spark.lucko.me/lasUtNSI2d
https://pastes.dev/Gy1H7TH4l3
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
pastes | Gy1H7TH4l3
A paste containing 109 lines of plaintext.
3 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 wwwaffle965#0
idk if youve solved it yet, but it might be cause minecraft starts to use your cpu when you join the server, meaning there is not much cpu headroom to run the server
ohh
that could be the reason
thanks I will see