Paper Server 1.20.4 Connection and Performance Issues
We're hosting a worldbuilding smp style kingdoms server with a bunch of plugins like citizens, denizen, betonquest, mythic mobs & crucible & dungeons, multiverse, etc. and are aiming to reach a maximum online of ~40 concurrent players in this year (having ~5 at the current moment).
We're new to hosting a server and Currently we are facing some problems:
1. We have players from around the globe, Some people are having packet loss - they log on, run around for 30 second and get timed out, while others from the same region / continent are doing ok (sometimes I my self get this out of the blue). We suspect it has something to do with eu's restrictive gateway and server location (london)?
2. Even though the server is doing good, the Spark report is concerning and some metrics are different from what the hosting pannel shows - the RAM always oscillates between 3 and 8 gb with 1 player, going up to 12 with more and the panel show no more than 5-10% CPU usage while the report show 98%
I'll be very thankful if you guys can provide me with some insight on how can I further optimize the server and fix the issues.
Also we're planning to change hostings (we're paying 70$ for the bellow specs, try to guess our current hosting... the forbidden A word) and I'd like to know which server location is the best compromise to allow NA, EU and AU players to play together? (I heard Florida is a good location)
What other stuff should we be aware of when choosing and transferring to a new host?
Specs: 16 gb ram (upgraded from 8), good cpu (don't know the model my self, will need to ask my mate who bought the plan), London
Spark reports with 4 players across the map:
* https://spark.lucko.me/KReWQuDUk5
* https://spark.lucko.me/Nub0pkK6BN
51 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by rravsh#0
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❌ entities.spawning.despawn-ranges.monster.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
❌ entities.spawning.despawn-ranges.underground_water_creature.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
❌ entities.spawning.despawn-ranges.underground_water_creature.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
❌ entities.spawning.despawn-ranges.water_ambient.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
❌ entities.spawning.despawn-ranges.water_creature.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
❌ entities.spawning.despawn-ranges.water_creature.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
❌ misc.redstone-implementation
Set this to "ALTERNATE_CURRENT" in config/paper-world-defaults.yml.
❌ chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.snowball
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.ender_pearl
Set a value in config/paper-world-defaults.yml. Recommended: 16.
❌ chunks.entity-per-chunk-save-limit.arrow
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by rravsh#0 • Page 4 of 4
Full plugin list:
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❌ entity-activation-range.wake-up-inactive.villagers-for
Decrease this in spigot.yml.
Recommended: 20.
❌ entity-activation-range.wake-up-inactive.flying-monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ entity-activation-range.wake-up-inactive.villagers-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-for
Decrease this in spigot.yml.
Recommended: 40.
❌ entity-activation-range.wake-up-inactive.monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 4.
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-max-per-tick
Decrease this in spigot.yml.
Recommended: 2.
❌ entity-activation-range.wake-up-inactive.monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ arrow-despawn-rate
Decrease this in spigot.yml.
Recommended: 300.
❌ merge-radius.item
Increase this in spigot.yml.
Recommended: 4.0.
❌ merge-radius.exp
Increase this in spigot.yml.
Recommended: 6.0.
❌ chunks.max-auto-save-chunks-per-tick
Decrease this in config/paper-world-defaults.yml.
Recommended: 6.
Requested by rravsh#0 • Page 2 of 4
The cpu on your system is literally maxed out
also, consider replacing citizens with ZNPCsPlus.
Citizens is quite laggy and ZNPCSplus has a migrator
You have a good 150 armor stands you might want to fix
@Равш do you have any datapacks?
!optimise check out the eternity guide
You can follow these guides to optimize your server
Admincraft Canned Responses
Datapacks is the laggiest thing on your server.
Datapacks are poorly optimised by mojang themselves and are often incredibly laggy. Consider removing them and find plugin alternatives if needed
We don't use them-
Hol on
I need to check
Or command blocks
We do use a good amount of them but none are repeating
the spark report says otherwise
if a datapack is listening for something it executes every tick
I'm having connection issues my self now... so I can't check if there are any repeating command blocks (which there shouldn't be any as far as I'm aware) but I found these two datapacks
no clue what they are for or if they are working right now, all I know is that they were installed by one of our guys a couple months ago and I'm waiting for him to msg me on this
I would contact him and ask whether it is crucial to the server that the datapacks are present
They aren't, just removed them and restarted the server. Now I get stable connection but might be because of the restart. I guess I should generate a new Spark report to see if it's better?
yeah
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 20.
Requested by rravsh#0 • Page 1 of 2
This is looking better
Is it ok if I keep this open? It looks good with just me on, gotta check if the people with (presumably) packet loss get any improvements
go for it
Yup, the connection problem got fixed!
Thank you very much @Skullians , you're a life savior!
I do have two - three questions though
Are armor stands a problem if they are dispersed across a large area, up to 8 for a chunk?
For example our spawn has 50 across it as decorations
50 armor stands isn’t that bad
!optimise if you’re worried about performance, check out eternity paper’s guide
You can follow these guides to optimize your server
Admincraft Canned Responses
$70/month for this?
- London
- 16gb ram
- AMD Ryzen 7 5800X 8-Core Processor (but only have 2 threads?)
Do you have multiple servers on this plan, or only 2 threads available?
For reference, the exact same setup, (AND a slightly nicer cpu) on bloom costs only $48/month
(can see ur cpu from the spark report)
Yeah, we made the usual newbie mistake of choosing the first google link
Step 1 is to use a better host, it'll be cheaper and might even fix alot of your packet loss issues. AND it'll perform better
should be your number 1 priority, save money, and improve server quality
I think of choosing Lilypad or Kinetik, their plans seem nice and have good locations
What specs should we shoot for with our chosen plugins and player count goal?
tbh ur current specs are great, just overpriced
idk if i'd recommend kinetic, seems a bit overpriced aswell
Kinetic is... okay
yeah hardware wise they look fine, just a little overpriced
wait
or well whats kinetik? idk them
you're paying 70 a month?
yeah... XD
and theres no uk option
only 2 options for kinetic
We have equal amount of players in both US and EU, some from australia and asia
I saw they have wider spread of options for the performance option
yeah and i wouldnt ever recommend that option
cpu is not the best for minecraft
Ah I see, so we should aim at a similar cpu to which we use now, right?
ryzen 9 5900s are great for ur usecase
which is what most people use, currently ur using a 5800s which is still great, but ur paying 2x the price for it, and ur seeming to have packetloss issues which is prob a cause of routing or poor anti-ddos implementation
The packet loss issue seems to have been resolved after I removed the two useless datapacks that were destroying the cpu, of which I only learned about thanks to Skullians
yeah avoid datapacks at all costs
unless its just adding a simple command, but any datapack that runs functions every tick will kill ur server
I guess we learned that the hard way lol, even though they were added at the very begining a few months ago for fun by one of the admins and we just never knew it was there...
bloom, pufferfish, birdflop, lilypad, all great options for you, will be cheaper and better performing
Also depending on longevity of the server, you might get discounts paying upfront and longterm
I also heard they have better hosting pannels
the ptero panels are great
bloom has a demo of their duckpanel aswell you can play around with
lots of the good hosts also provide 1 click database setups for plugins
all no extra costs
Sounds great! What about locations? What's the best compromise with a playerbase such as I mentioned above?
I saw that London, Florida/Washington and Central US are popular options
Although So far people who haven't had those connection issues caused by the datapacks were generally having a good or at least ok connections
so I guess that's not that important for now
my last question is - is there anything important we should know when migrating and where can I find good sources to learn how to migrate between hostings?
If ur current host has sftp access, some of the good hosts have auto importers where u just put in the ftp credentials and it will migrate it all for you
Unless ur cpu was literally at its death point (which could be the case here) datapacks won’t cause connection issues. Could’ve been a coincidence that it got better, and it was just a hiccup in ur host
Not too sure, one of those things that you’ll need to test, you can try and get a couple of players in the populated areas to do some ping tests to different regions
Aighty! I'll check out the hosting options you recommend, and continue monitoring the server connection
Thank you so very much guys! You've made my time so much easier, you're the best!
!solved
post closed!
The post/thread has been closed!
Requested by rravsh#0