In this video I will be showing you how to remove lag from your Minecraft server so inside of Minecraft there are two different types of lag you might have to deal with client-side lag and server side lag now client-side lag can be caused by Hardware or Internet issues While server side lag in most of the cases means that your server is overloading meaning that it can’t keep up with everything happening on that server and while part of this lag can be resolved by having great server resources a part of it also has to do with your server configuration and in Today’s video we’re gonna take a look at that so before we start do make sure to subscribe to my channel you would really help me out by doing that you actually would and then without any further Ado let’s Dive Right into this okay so the very first thing you will need to do Before we even start configuring anything is make sure you have enough server resources if you have a server with 6 gigabytes of RAM you only got five plugins installed there are four people online and you’re constantly lagging then it is pretty safe to say that server resources are not the Problem though if you’re running a Minecraft server with 50 players online all at the same time while you’re also running 70 plugins and you only got three gigabytes of RAM then I can understand why your server is lagging so the first thing you will need to do is Make sure your resources are good enough so make sure you got enough RAM and you’re hosting as a hosting company that offers a great CPU now I’m hosting my Minecraft server at alien hosts and they are for an absolute top tier CPU which gets you amazing performance if you want To check out alien house for yourself I will leave a link down below as well as a promo code so you can save 20 on your first order anyways if you’re sure that server resources are not the problem we can move on to the next step and that Will be start using paper MC I recently did a poll on my channel asking everyone what type of server they’re using and I was blown away with the amount of people who are still using spigots if you are still using spigots I highly encourage you to switch to paper it literally Improves unspigit in every single way it is way more optimized and in general just a lot less resource intensive even if you plan on running a completely vanilla Minecraft server with no plugins installed at all I would highly recommend using paper they also release an update very frequently you can see That all of these updates have been released in the spawn of 2 days which is crazy the Developers are very active so I would highly recommend switching to paper which only doing that could already improve your performance significantly now there are also paper Forks out there like purple and Pufferfish you could of course also use those personally I still prefer using paper though I think the choice is just up to personal preference I will leave a link to papermc in the description if you want to check them out now if you’ve done all that but you’re still Experiencing lack then there’s probably something in game causing you troubles now most server lag is caused by World Generation though too many entities in your world can also be a problem if you want to specifically know what is causing you troubles I would highly recommend making a timings report this Is a paper feature which can give you great Insight on why your server is not performing well so while on your server you simply want to type slash timings and then you want to turn timings on by doing this timings will be enabled and reset now you got to wait at least 5 Minutes before a report is ready and in this time it is important that people keep playing on your server so that the timings report will actually catch what is causing the issue also if you have all the time in the world I would highly recommend letting the timings report go For a little longer let’s say 10 or 20 minutes that way it is probably becoming even more clear what is causing the issue okay it has been about 5 minutes when we now type slash timings reports we will get a timings report so there we Go we get a link we can click on there and over here you can see everything that’s going on with your server in those last 5 minutes or 10 minutes or 20 minutes whatever for as long as you let the timings report go on in my case it Was 7 minutes so you can see for me everything is just going fluently nothing is going on this server is running great but if something is not running great you will very clearly see that here so you will see atps drop or a spike and over here under timings you You can see where the problem is coming from now that we know where the problem is coming from it is time to actually fix it why is the server so you simply want to go to your Minecraft server folder and we’re gonna locate the server.properties file inside of there there are a few Options that could use some optimization the first one is online 28 The View Distance by default it is on 10. I would highly recommend setting this to 7 or 8. this is basically the distance that the player will be able to see so even if the player has their render distance on Like 30 they won’t be able to see that far away the server will actually limit it now if you got a lot of players online that is something that you want because if you have this value too high the server will need to load in a lot of Blocks for a lot of players so let’s set it to 7. next we want to look for the simulation distance the simulation distance is basically the area around the player that will actually tick now what is stick what does a tick do well I think most of you know that one real Life second consists out of 20 Minecraft ticks and they take basically makes the Minecraft worlds go around so for example crops can only grow when they’re ticking because if they’re not ticking time will not pass and the crop will never grow same thing goes for a furnace If you want a furnace to actually smelt what’s inside of it then it needs to tick so there needs to be a player near this basically determines how near a player needs to be for the furnace to be active or for the crop to actually grow Now this can have a big influence on the performance of your server so I would highly recommend putting it to something like 4. this basically makes it so that the player can still see pretty far because the view distance is 7 but not all of the chunks they will see are Actually being ticked and this will be all for the server.properties file so we’re simply Gonna Save it and exit out now next there’s a cool setting we want to change inside of the paper config file so inside of your Minecraft server folder you want to look for the config Folder at the side of there you should see paper world’s defaults now inside of that file you want to look for line 68 prevent moving into an loaded chunks this one you want to put to true so basically woman is loading new terrain very quickly and the server can’t keep up and eventually Now that we set the view distance of the server lower this might happen more frequently but when players get in to unloaded chunks that will cause significant lag so preventing them from entering these unloaded chunks in the first place is for sure a great idea Also on top of that on line 67 you got the max Auto safe chunks per tick so basically how many chunks will the server automatically save per in-game tick currently it is set to 24 if you have a lot of players you might want to Keep this to 24 though if you only have like 10 players online you could set it to something like 8 or 16 for example I’m gonna set it to 16. why not now this part over here on line 59 can also be extremely useful so this option will Limit how many entities can be saved per chunk so the arrow is currently disabled meaning that a pretty much infinite amount of arrows can be inside of one churn I will leave a link to this page in the description of this video this is an extremely handy GitHub page where I’m Getting most of these values from it’s over here you also have some good starting values for the entity purchasing safe limit so we’re simply gonna copy all of them and then paste them all in here just like that so this will make sure that only for example 16 Arrows can be inside of one chunk for the first Arrow despawning again now please note that these are not just regular arrows inside of a chest these are Eros s entities so after you shoot an arrow the arrow will become an entity and then the spawn after a while and This is how many of those Arrow entities can be out there so after doing all of that we’ve pretty much optimized our world generation as much as we can now the last optimization thing I will be showing you is about mobs because having too many mobs in your Minecraft server Can also really really lag it out so this time we will be looking for the buckets.yml file and inside of there you have the spawn limits so once again I will be copying the values from that GitHub page you can go there and copy them yourself though if you don’t want To scroll through the whole page you can also choose just type them over from this video now one thing that is very important to keep in mind is that by limiting the spawn rates most mob Farms will not work anymore so most mob farms in Minecraft Like A Zombie Farm or a Creeper Farm or whatever they’re all made around these default values so if you do change these values then most mod firms will not work anymore though it will greatly increase performance now the tech spur we’re also gonna change so Axolotl spawns will go up all the way to 400 and the most spawns we will keep the same monster spawns will go to 10. what our spawns will also go to 400 what are ambient spawns will also go to 400s water underground creature spawns will once again go to 400s and ambient spawns will surprise surprise go to 400. so This basically increases the time between these entities spawning which once again can increase performance now let’s save the file and let’s hop into to the spigot.yml file and then online 128 you got the entity activation range now this time I will be copying from the GitHub page so these are the values type Them over if you want I’m simply gonna copy and paste them here there we go now an option you might also want to change is this one take inactive villagers especially if a lot of players on your server have a villager farm or maybe have a villager spawner somehow Considering this one to false could be very valuable to you this will make it so that not all inactive villagers will be ticked sticking of course takes server resource if there are 500 finishers out there all being ticked it could cause lag so in that case setting This to True would be really really nice then the last thing we want to change about mob spawning is inside of the paper file again to Simply go to the config folder and after that to paper world defaults.oyml and then look for the d-spawn ranges this we want to change a Little bit too so these are the value you want to copy either from the GitHub page or from this video so we’ve now already drastically optimized the world generation and the mob spawning on your Minecraft server so on this GitHub page you can find many more ways to optimize Your server maps and World Generation are for sure the things that cost the most lag which is why I showed them in this video though if you want to optimize your Minecraft server even more I would highly recommend visiting this page and giving it a read on your own Then to finish off this video I want to recommend 3 plugins which can enhance your server performance first of all we got chunky chunky is a Minecraft plugin which allows you to pre-generate your Minecraft worlds now why would you want to pre-gen generating a Minecraft world is the most resource intensive thing That a server can do if you got too many players online all discovering new terrain at the same time then even when optimizing all of these settings your server might still lag in that case pre-generating is very very valuable you basically let this plugin already loads All of the chunks inside of your world or at least a part of your world and then when players go and explore from spawn the server only has to load the plugins as opposed to generating them all the way from scratch I’ve made a fill tutorial here on the channel on how To use chunky so if you want to check it out I will leave a card on this video then we got stack mob this Minecraft plugin is great if your players have a lot of mob Farms you’ve seen the farms you know what I’m talking about well Stack mob will basically stack all of those mobs together which can greatly improve performance now we did change a lot of settings inside of all of those config files and while those settings were great for just natural mob spawning a mob farm is not a natural way to spawn Mobs I mean you constantly breed them and you will get more and more and more and more and eventually your server will lag so if that happens a lot on your server then stackmob could be a great plugin for you and last but not least clear lag this plugin seems outdated but The last time I tested it it still works on 1.20.1 now this plugin might be great for some servers as you can make so that it clears items off the ground every few minutes it also comes with a very handy command which will allow you to see which chunk inside of your Minecraft Worlds the lag is coming from now personally I’ve stopped using this plugin a long time ago and I’m not the biggest fan of it anymore though I know there’s still a lot of people out there who really enjoy clear lag and they say it’s working great for them which is why I decided to mention it in this video and then guys that will be it that is how you optimize your Minecraft server and remove lag I really hope you enjoyed watching this video do make sure to subscribe to the channel you would really help me I’ll be doing that you Actually would and then I will see you in the next one foreign Video Information
This video, titled ‘Stop Lag and Boost Performance on Your Minecraft Server’, was uploaded by KasaiSora on 2023-07-26 10:01:00. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Become a Channel Member today to get access to Epic perks: …