1.20.1 forge/NeoForge Self-Hosted Server Unresponsive
I play on the same PC that I'm hosting server and after awhile of playing the server stops responding. Console shows no errors, no crashes just window stops responding and any players get kicked with "Server connection timed out". I connect to server directly so its not internet issue. Something is causing the process to hang and I do not know how to find out what. This happens vanilla and modded. Spark for config: https://spark.lucko.me/QXwX0ZbSKt
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
26 Replies
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 bkoe#0
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 bkoe#0
when you say you're connecting directly, you mean that you're connecting with localhost/127.0.0.1, right?
and can you have spark running while someone gets kicked?
also, are you using a modpack you created yourself, or just an off the shelf one?
local host 0 from direct connect, I have spark running live profile viewer but we all get kicked and the console doesnt take any commands so I cant run a profile or heapdump. It's a modpack that I put together myself, I've trouble shooted it and got as far as running the server 100% vanilla and the same thing is happening
What is your network speed like
If im running the server on my win 11 pc and playing on the same pc, internet shouldmt affect me right?
how many players do you have?
3 including myself
hmm
typically you want 50mbps both ways
and if you’re running it on the same pc it’s not helping
so my upload speed is causing my server to hang?
I’m not entirely sure
the worst part about it is that it isnt consistent, sometimes I play with one of my friends for 4hrs on the server and its fine. Other times the server crashes in 10min
it’s certainly a weird issue
how are they connecting? a public ip?
or something like playit.gg
public ip
Like is it my cpu? I think 6 cores should be enough for 3 ppl....
well
mc is primarily single threaded
So my client and the server would use the same thread?
no
they’d use separate threads
yeah I dont think its player count, mods, ram, internet speed, jvm flags or jdk
80% of my server ticks are for unsafe park so the issue could be in there, or its entities/chunk loading
Unsafe park is the server waiting for the next tick. That means 80% of the time your server is just waiting (this is good)
Ok I'm going to try some pregen mods and see if it's chunk loading that is causing the process to hang
Yes I definitely recommend pregenning
!pregen
whatever I thought it was one of those ! thingies
!chunky
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
I remembered that I posted on here, pregen didn't work. I even went back to vanilla world gen and still stalling out and becoming unresponsive. I went into task manager and notice the process was listed as suspended instead of non-responsive. After researching Java a bit, I think it might be a deadlock. In task manager I'm able to "analyze wait chain" but it just tells me threads. Is there a way I can debug this? I know deadlocks kinda mean you're SOL because it could be anything but I'm not even sure it's a deadlock
!close
post closed!
The post/thread has been closed!
Requested by bkoe#0