Optimizing 1.10.2

Hey all,

I've recently made the jump from 1.7.10 to 1.10.2 on my little server, and I've had a nightmare of a time. We play modded, and the server has been incredibly laggy with both a normal forge server and with SpongeForge installed. I've heard rumours that this version of Minecraft is just poorly optimized, but haven't found anything to substantiate that. Trying to Google it gives me pages on pages of forum posts of kids suggesting java args and generally being clueless.

I've found BetterFps and foamfix. The issues manifest as rubber-banding and skipping ticks, and my working theory is that the server is having problems generating chunks - it seems to run faster in places players have already explored.

Do you guys have any ideas, or suggestions on reliable and informed places to search?

Posted May 10, 2017, 12:04 AM UTC

39
TomH_squared•

I agree with aPseudoKnight, chunk generation while playing sounds like the issue. Especially since you said performance is better in places players have already explored.

You're running Sponge, so Nucleus might be your friend here. I used it to set a world border of 15000x15000, then kicked off a chunk generate command from the console and let my server do its thing. This is really hard work for a server though, it'll basically make the game unplayable while chunk gen is running. But the end result when it's done is absolutely worth it.

Also, if you're not doing so already, run your world on an SSD. The significantly faster read/write times over mechanical HDDs will help with loading the world too

3
StevenMatrixOP•

And here I was just about to dump Sponge. This post just reversed by decision entirely. I'll set up a world border and pregenerate a good distance.

Do you have an idea how much disk space (roughly) I should be expecting to use for a border that size?

2
TomH_squared•

I just checked my server, it's currently sitting at 5.7GB total with the 15000x15000 border (so a 7500 block radius from 0,0). 5GB of that is the overworld, which is the only dimension I pregenerated, although you could probably pregen any dimension you want

2
StevenMatrixOP•

Awesome, thanks for checking!

1
DykamOSS Plugin Dev•

Note that the size might somewhat increase or decrease with player activity, but it should be minute for normal usage.

2
aPseudoKnight•

"my working theory is that the server is having problems generating chunks"

Good theory. This is the most common reason for rubber-banding. Admins here usually pregenerate most or all of our worlds so that this isn't an issue. It's also better or worse depending on the server's view distance and player's travel speed. In 1.9 elytra were added, which is by far the fastest mode of travel in vanilla. It caused a lot of concern. I think at the same time 1.9 chunk generation might have become a tiny bit slower too, but this is not easy to test. It might be a little of that too. And of course, your mods have changed over time too.

2
StevenMatrixOP•

Short of flying around doing it manually, is there a good way to pre-generate a large area?

1
aPseudoKnight•

For that platform, I'm unsure. On Spigot we use WorldBorder, but there's also a Command Block solution that's slower. The Sponge community probably has a plugin for it.

2
Pokechu22World Downloader mod | bugs.mojang.com helper | wiki.vg | [more]•

If you're on vanilla, you should have access to /debug which enables debug profiling (the equivalent to timings on bukkit), although I'm not sure how well all mods support that. Though, probably it's a chunk generation issue as you said. (I don't 100% recall what areas are covered by the debug profiler - I think chunk generation isn't covered too well, but you can see what areas are not causing performance issues)

2