The player limit can be configured directly, but it is necessary to measure the capacity that the machine can handle. The proxy and the back server can impose separate limits at the same time.
Step by step
-
Shut down the server properly and update the
max-playersvalue inserver.properties. For examplemax-players=12for a small friends server. -
If there is a proxy, check separately where the displayed player capacity and the actual admission limit are set.
-
Turn on the server and verify the capacity in the status query. Then monitor TPS, MSPT and memory usage during peak hours.
-
Make the limit increase gradually. If tick time deteriorates as the number of players increases, profile the game world and plugin load.
Keep in mind
The maximum number written in the status response is not a measurement of whether the server will carry that many players without any problems.