r/admincraft • • 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

https://spark.lucko.me/6e4eJL6krE

7 Upvotes

8 comments sorted by

8

u/Orange_Nestea Admincraft 3d ago

I see multiple things that are not ideal:

  • simulation distance is configured higher than view distance, did you mix them up?
  • Host CPU is a poor choice for high performance minecraft servers.
  • there is a weird amount of total RAM on the machine while the disk your server is running on is almost full. Paired with the CPU choice, this COULD be an indicator of overselling. A malicous server hosting method to sell more product than they actually own, counting on few consumers actually using the full capacity.
  • jvm flags are not ideal and include a log4j fixer jar that is a) not required for that version of minecraft and b) I have no clue if it impacts the performance of your machine at all but I don't like it.

1

u/Obvious-Green-1045 3d ago

ok the RAM got shown wrong in the spark profile its 8bg plus i Fixed everything besides the jvm flags since i honestly have no idea what that is xD

4

u/Orange_Nestea Admincraft 3d ago

No it's not wrong.

The heap size is indeed 8 gb but the machine that runs your server has a weird total.

Be careful with minecraft server hosts especially when they run sales and stuff like that over summer, winter or black friday.

There are a lot of scams because fully digital "companies" are very hard to track. They can basically do all illegal buisness practices and get away with it.

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.

1

u/Obvious-Green-1045 3d ago

we use chunky and its not loading chunks so i think it wasnt because of 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 100 in the spark profiler args, it'll only show the spikes