Server Performance

From GT New Horizons

Server performance tips for optimizing setups, similar to what Low End PCs does for clients.

Mods

  • Make sure fastcraft is enabled (it isn't included in the server download but you can find it in the client)
  • Optifine is client only - make sure it's not loaded on the server

Lag

You can use /xu_tps on the client (type it in chat) to see if the server is experiencing tick lag – if the numbers are consistently red you have an issue. It should be noted that /xu_tps is basing its measures on time used by the server to respond to the client, which can be impacted with lag. If they're continously white, but you're experiencing framerate issues, see Low End PCs for client performance tips. The 3 pairs of numbers are respectively the instantaneous ticktime, the rolling average ticktime over the last 100 game ticks, and the worst tick time over the last 100 ticks. Numbers in parentheses correspond to the equivalent in TPS. The example below shows a 30.30ms tick, and a drop to 7.84 TPS at some point in the last 100 ticks (roughly 5 seconds).

You can use the command /cofh tps <parameter> to see the tick time/TPS. If the parameter is ommited, it'll display the data for all the dimensions (beware of chat spam). If you use o as a parameter, it will just display the overall ticktime and TPS of the server. a will do the same as o but it will in addition to that gives the amount of loaded dims/chunks/tile entities/entities. You can also specify a dimension id as a parameter, and it will give you the ticktime consumed by the dimension. Be careful of the TPS given for every dim displayed by this command, as it's a value to give you an idea of the server load in term of TPS if that dim was the only dim running on the server. Minecraft doesn't multithread the dimensions, so when TPS is decreasing, it's for all the dimensions. But this can help narrow down where a lag source may be.

You can use various profiling tools to find lag. Some of the most popular are:

Some are mods you install into the server (and client); others are programs that run on the server. Not all may be available to you depending on your server provider.