Hello everyone it’s living online here for server pro and today i’ll be showing you ways on how to prevent lag on a minecraft java server one of the many ways you can improve performance on your java server is by changing the server type to paper paper is generally considered to be more Performant in comparison to other minecraft types due to further optimizations found in the server code paper also includes timings enabling you to find out what’s slowing down your server so you can tackle it and increase performance another bonus is that it can still run most bucket and spigot plugins As well we’ll go over that in more detail later in this video but to install paper on your server you need to head to server.pro and go into your service control panel at the dashboard all you have to do is press change to open up a set of settings there you just Have to press on the type section and select paper then you can reinstall the server and wait until the changes have taken effect another way you can reduce lag on your server is by pre-generating your world pre-generating your world means that your world is generated with a plug-in so your server doesn’t experience Immense lag when players are exploring it’s highly recommended you follow this step as this is one of the leading causes for server lag even if you have paper installed in order to do this you’ll need to have this plugin installed as always we’ll leave the link To it in the description when you’re on the download page all you have to do is click the download now button that should instantly download the plugin file when the download is finished you need to head to your server then click on the files tab on the left and in that Section you should open up the plugins folder all you have to do here is drag in the plugin file you just downloaded and that’s it the plugin is installed before proceeding make sure to restart the server for the necessary files to be generated when that’s done you should Head to the server dashboard and copy the host name afterwards launch your minecraft application and when it’s open head to the multiplayer section click add server and in the server address section paste the host name once that’s done head into your server and when it’s generated it means we can now start Pre-generating the world using commands the first thing you should be doing is setting a world border a world border is important because it can prevent super large file sizes and lag on your server to get a world border setup you should type in the command slash world border Set and then the radius you want the border to be i’ll be setting it to 1000 as an example for this video the radius number you set it to is the part of the world that’s going to be pre-generated on the server to pre-generate that border you’re going to want to use the Command slash fcp fill vanilla and then set a chunk buffer the chunk buffer is how many chunks outside your world border you want to have pre-generated we recommend doing somewhere between five to ten that’s so if players are on the edge of the world border they’re not generating chunks outside of it and Causing lag after that you want to type in the name of your world since our world is just called world i’ll type that in and press enter for the pre-generation to start if at any point you want to see how much of the world is left to generate you can use the command Fcp pending it’ll say generating chunks and the percentage of how much has been generated if you don’t want to have to keep using the command though you can also refer to the console section on your server there you’ll see live updates of the chunks generated and how Many are left to go during this generation process you should not be playing so make sure you set aside some time to do this before letting other players on the server after a while the chunk generation process will complete and you’ll know it’s done when it says 100 If you then go on your server and walk around you’ll see that lag is minimal since the chunks set have already been generated After installing paper onto your server you can take further steps in reducing lag by optimizing features in the paper.yml file to find that file you need to head into your file section and scroll down until you see a paper.yml text document inside that file you’ll See there are a lot of options you can tweak if you don’t know which features to tweak to increase performance correctly we recommend you follow the settings from this pickup post the link to this post will be in the description but when you’re there you should scroll Down and open up the paper.yml spoiler button that’ll show you the best settings for optimal performance back on the server file if at any point you have trouble finding each feature you can press ctrl and f and type in the feature to find it faster after you’ve made all The configurations you desire ensure you press save file to confirm all the changes then quickly restart the server to ensure the changes take effect if your server performance hasn’t improved as much as you would want it to you can also optimize the bucket that yml file the spigot.yml file and the Sever.properties file the best settings for each of those files will also be shown on the spigot forum post so make sure to click the link below if you’re interested As mentioned before paper includes timings a feature that enables you to find out exactly what is slowing down your server if you’re still having performance issues after the last few steps but not sure exactly what the problem is timing reports are the perfect option what you need to do in This step is head into your server and type in slash timing spaced press enter and after a couple seconds it’ll generate your timings report to view it you should click it and press yes that’ll open up a page on your browser detailing all kinds of info about your Server if you hover over the graph you can see specific information like tps tps loss trunks and more i can see that on two occasions tps loss was way higher than the average so i’ll be selecting those time periods using the selector at the bottom when i’ve done that i can Scroll down and see that at the top most of the server tick issues were to do with full server take if you have similar issues you can open up the drop down list and target what exactly slowing down the server say for example you have entities or tile entities Causing a lot of lag there are plugins you could download to improve performance there are some plugins you can install on your server that help clean up performance and get tps up for example if you have an issue with entities causing lag such as cows and pigs There’s a plugin you can download to fix that that’s the stackmob plugin we’ll leave a link to it in the description basically the stackmap plugin enhances server performance by stacking and merging entities your animal pens will go from looking like this to looking like this this is a cost for a lot of Lag on servers and it may improve your server drastically so make sure to download this if needed however if you’re still having issues you may benefit from installing the clear lag plugin clear lag is designed to reduce lag by clearing out mobs every five minutes but it also has a lot of other Features if you’re having problems with other aspects causing lag on your server it’s guaranteed there’s a plug-in that can assist in fixing it for example if you’re experiencing lag due to automatic farms you can download the autofom plugin the autofont plugin lets you run through fields and break tens of crops At once its features are configurable too so you can tweak it to your liking hopefully though if you follow all the steps showcased in this video you’ll be able to reduce lag on your server drastically Well that’s it for this video if you have any questions make sure to leave them down below and if you enjoyed this video subscribe to see more from my channel thank you for watching you Video Information
This video, titled ‘How to Prevent Lag on a Minecraft Server – Minecraft Java’, was uploaded by Server.pro on 2022-06-14 14:45:00. It has garnered 46657 views and 792 likes. The duration of the video is 00:07:17 or 437 seconds.
https://server.pro In this video, we show you a couple ways on how to prevent lag on a Minecraft Java server. Some of those ways include changing the server type,optimising files and adding plugins to improve performance!
►Resources: -FastChunkPregenerator: https://www.spigotmc.org/resources/fast-chunk-pregenerator.74429/ -Server Optimization Post: https://github.com/YouHaveTrouble/minecraft-optimization -StackMob Plugin: https://www.spigotmc.org/resources/stackmob-enhance-your-servers-performance-without-the-sacrifice.29999/ -ClearLag Plugin: https://www.spigotmc.org/resources/clear-lag-automatic.77457/ -AutoFarm Plugin: https://www.spigotmc.org/resources/autofarm.82726/
∎ Need help? https://server.pro/contact ∎ Twitter: https://twitter.com/ServerPro ∎ Discord: https://discord.gg/MShRnUHaGS
More Minecraft Java Videos: https://www.youtube.com/playlist?list=PLQwjHJKOa4IRULoZdBMjqQg3whqZzaoXM
Music Credits: ► Savannah (Sketch) by Kevin MacLeod Link: https://incompetech.filmmusic.io/song/4323-savannah-sketch- License: https://filmmusic.io/standard-license
Timestamps: 0:00 Intro 0:11 Paper Server Type 0:56 Pre-Load World 3:30 Optimising Files 4:39 Timings Reports 5:44 Performance Plugins 6:51 Outro