r/admincraft • u/Obvious-Green-1045 • 3d ago
Help/Question [java] Redstone server on 26.3 Having huge mspt spikes
Im trrying to run a server for technical mc players with my friends on 26.3 but we keep having lags before we even started building any farms
server runs fabric and some optimization mods
7
Upvotes
8
u/Orange_Nestea Admincraft 3d ago
I see multiple things that are not ideal:
2
u/kai-zaphosting 3d ago
Your 15m TPS average is 18.8, but the last minute is 10.4 with CPU pinned around 99.7%, versus roughly 22% averaged over 15 minutes. So this is bursts, not constant load. A median MSPT of ~25 is fine, it's the 95th percentile (108ms) and that 694ms max that you feel as lag.
With 3 players and no farms yet, my first suspect is chunk generation. It's one of the heaviest things a server does, and exploring fresh terrain is a common cause of spikes like this. Were you flying around or exploring new chunks while that profile ran? If so, pregenerating the area you'll actually play in (Chunky, if it's out for 26.3) and dropping view/simulation distance a bit should help with the generation part of the lag. Chunky maxes out the CPU while it runs, so do it when nobody's online or it'll cause the same kind of spikes.
If you weren't exploring, what's the biggest entry under the server thread in the viewer, and what's in your mod list? Memory looks fine (2.4 of 3.6 GB used, young GCs around 13ms), so I wouldn't chase that.
2
u/Master5723 2d ago
Lag before any farms exist usually means chunk generation: every time someone explores, the main thread waits on worldgen. Pregen with Chunky (/chunky radius 3000, then /chunky start) and lower view-distance in server.properties, keeping simulation-distance at what your farms need. In the spark profile, expand the Server thread: if the spikes sit under chunk gen/loading, that's your answer. If they line up with GC pauses, it's the heap, not the mods. And check every optimization mod is vanilla-parity, because tech players will notice.
1
u/UselessDood 3d ago
Stick
--only-ticks-over 100in the spark profiler args, it'll only show the spikes