Recent Discussions
Forge server 1.18.2 Hanging/ timing out with no crash.
Unanswered
Northern snakehead posted this in #questions
17 messages
0 views
Northern snakeheadOP
Hey everyone, I’m new to hosting Minecraft servers and need help troubleshooting an issue.
I’m running a Forge 1.18.2 server (latest version) on Ubuntu Server 22.04 using OpenJDK 17.0.13. The hardware is a Dell R710 with dual Xeon X5680s, 64 GB RAM, and it’s connected to a 2 Gbps fiber connection.
The problem:
After running for some time with players online (never more than 6), the server begins to hang. Players can move around but can’t interact with blocks, break or place anything, or see item drops. After a short while, they time out. Sometimes the server just times out entirely without producing a crash report. When the issue occurs:
- The positions of players are not saved.
- Only a full server restart restores the state to just before the hang occurred.
- Players who timed out still appear in the server console.
- The server still shows up on the multiplayer list in the client, listing the timed-out players as if they're still connected.
JVM arguments used:
-Xms2500M
-Xmx9G
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:G1NewSizePercent=20
-XX:G1ReservePercent=20
-XX:MaxGCPauseMillis=50
-XX:G1HeapRegionSize=32M
There are quite a few mods (~130+), including performance mods like ModernFix, FerriteCore, Clumps, Smooth Boot Reloaded, FastSuite, Embeddium, Chunk Sending, and Adaptive Performance Tweaks. A full mod list is available if needed.
I’m not sure if this is a mod conflict, memory leak, GC issue, or networking problem.
Any advice on how to begin diagnosing this kind of hanging behavior would be greatly appreciated!
I have attached the latest log and a modlist below.
I’m running a Forge 1.18.2 server (latest version) on Ubuntu Server 22.04 using OpenJDK 17.0.13. The hardware is a Dell R710 with dual Xeon X5680s, 64 GB RAM, and it’s connected to a 2 Gbps fiber connection.
The problem:
After running for some time with players online (never more than 6), the server begins to hang. Players can move around but can’t interact with blocks, break or place anything, or see item drops. After a short while, they time out. Sometimes the server just times out entirely without producing a crash report. When the issue occurs:
- The positions of players are not saved.
- Only a full server restart restores the state to just before the hang occurred.
- Players who timed out still appear in the server console.
- The server still shows up on the multiplayer list in the client, listing the timed-out players as if they're still connected.
JVM arguments used:
-Xms2500M
-Xmx9G
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:G1NewSizePercent=20
-XX:G1ReservePercent=20
-XX:MaxGCPauseMillis=50
-XX:G1HeapRegionSize=32M
There are quite a few mods (~130+), including performance mods like ModernFix, FerriteCore, Clumps, Smooth Boot Reloaded, FastSuite, Embeddium, Chunk Sending, and Adaptive Performance Tweaks. A full mod list is available if needed.
I’m not sure if this is a mod conflict, memory leak, GC issue, or networking problem.
Any advice on how to begin diagnosing this kind of hanging behavior would be greatly appreciated!
I have attached the latest log and a modlist below.
Bluetick Coonhound
Send spark
!spark
Also not great cpu/platform to host on
When the hang happens, you should capture a thread dump and see what's going on, the things that you described usually happen if the server is waiting on a process (most likely a mod)
Northern snakeheadOP
Northern snakeheadOP
Attaching to process ID 11155, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 17.0.13+11-LTS
Deadlock Detection:
Debugger attached successfully.
Server compiler detected.
JVM version is 17.0.13+11-LTS
Deadlock Detection:
not seeing anything in the thread dump (I have no idea what im doing) and the spark profiler doesnt look great
image.png
@Northern snakehead not seeing anything in the thread dump (I have no idea what im doing) and the spark profiler doesnt look great
yeah, no worries, that isn't the thread dump. Run this in your shell "jcmd 11155 Thread.print > out.txt" then go check the dump and see if it has any other thread state other than 'RUNNABLE'
if it does (and it should, considering that minecraft is not progressing and timing out the players) check the stack traces, you can probably figure out what mod is causing it to 'WAIT' just by reading the stack trace
Northern snakeheadOP
out.txt
DownloadI am also Happy to get into one of the VCs for ease of use
Well the server thread is waiting on 'dimthread.' It's a chunk load optimisation mod, so you should remove that and see what happens, not sure whether any mods use it as a dependency (Make a backup)
since it's a chunk generation related mod, you should make a backup, chunk generation mods are extremely problematic and the removal of one can totally break a world
Okay, and it's a mod made to multi-thread dimensions so that they can run in a separate thread. It makes sense that some mods would conflict with
Northern snakeheadOP
that was it! thank you so much!
Loading...
Loading...