We have enough memory dedicated for the server, that's not the cause of our lag problem.
The server just can't handle everything that is going on ingame at the same time. It's as easy as that.
Adding everything that the server is supposed to do in one tick, takes longer than one tick should normally take, which is 50ms. Then the server will lag.
All entities loaded in the whole world, all chunk loading going on at the same time, all redstone contraptions, farms, water flushing, huge storage systems etc etc (the list goes on) added together is more than our server can handle.
I did find something yesterday, that may be fixed as of one hour ago, which had to do with entities, and was a bug in paper. The devs made a fix for it, and I updated simplex an hour ago. Fingers crossed it helps at least a little.
Other than that, we have no magic fix for this lag.
The best thing we can do, is to tell all players to not have farms running if it's not nessecary, not collect a TON of entities in the same area, and not have a million farms together in one place running at the same time. Also think about how you make redstone contraptions.
I dont know the exact reason for the lag, and most likely it's a bunch of things added together that makes the server lag.
To be honest, I'm tired of lag hunting, and have not much else to try right now.
-SnuRRe