Server TPS Lag with multiple players (Origin SMP Modpack + other mods)

Heya guys, I got this issue with a server I'm running. Its a dedicated server from "Mine-Hoster" (German Server Host)

Recently I noticed that with more than around 5-6 players, the server starts chugging along way more than usual. I never noticed this at the beginning even with more than 12 players at the same time, but I believe its likely that the issue was because there weren't multiple bases with their own animal farms.

After using spark I got these results:

When I'm alone on the server: https://spark.lucko.me/lJRHIGHZOG
At around 5-6 online players: https://spark.lucko.me/F4e9zjYm7b

So checking the results, in the "all" tab, chicken seem to be the biggest issue. When I noticed that, we killed off some chickens, especially in a base that probably reached the maximum of chicken in one area already. The TPS did get better (before it was as low as 9), but it still seems to be the one that has the biggest issues of all the mobs.

In the "mod" tab, its visible that "pehkui", a library for resizing entities, impacts tps the most. Annoyingly, we cant remove it since we have multiple players using the inchling origin, which uses pehkui.

Is there any thing that I'm missing here and are there any possible solutions? RAM and CPU dont seem to cap or spike in the server manager. (Check attached image)

If you guys need any more info, I'm happy to provide.
image.png
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark is a performance profiler for Minecraft clients, servers, and proxies.
Was this page helpful?
Server TPS Lag with multiple players (Origin SMP Modpack + other mods) - Admincraft