Help with TPS issues!
Hi! I'm having some issues with TPS that I did not encounter earlier in my 1.20.1 Forge server's lifespan. I'm not quite sure how to use Spark to identify the problem, so I would like some help diagnosing it! In addition, could anyone point me to any resources that would help me understand Spark profiler data, and common issues causing TPS lag on modded servers? Thank you!
Here's the Spark profiler results: https://spark.lucko.me/nTKD3dk5UG
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
8 Replies
i see a lot of power being spent on mob AI. not sure what sort of options you have for limiting mob AI or spawn rates, but that would probably help
Thank you! And by the way, how were you able to tell?
Still mostly new to Spark so not quite sure how to read the profilers
you can look at the thread and keep expanding the dropdowns here. it will tell you exactly how much power everything is using

this is going to sound really stupid, but try allocating less memory to the server (I’d personally try with 8GB)
also, if you have root access, set your swapiness value to something much lower (between 1 and 5)
see this for more deatils
https://askubuntu.com/questions/103915/how-do-i-configure-swappiness
Haha yeahh I know, GC collector and all, it’s currently at 20 GB temporarily because setting it too low seemed to crash my server when I was pregenning
sweet spot seems to be 13 GB for me normally
Thank you sm!!
Ohhh my god
this was confusing me for a long time ever since my friend and I got the PC LOL I didn’t understand why it kept going to swap ram when it hadn’t maxed out physical
Thank you 😊
if you're using pterodactyl/docker you'll need to set your -xmx to a lower value (2GB smaller) than what the container is allocated (ie: if the container is allocated 10GB, you should set -Xmx to 8GB)
Not running it on pterodactyl atm, I do use tmux though? Does that count? Sorry, I’m not well-versed w/ computers and the terminology lol
nah, tmux wouldn't count