Half the "my server is lagging" posts here would be solved in five minutes with a profile. Install spark. Then: /spark tps — MSPT is the number that matters, not TPS. Budget is 50ms a tick. Sitting at 60+ means everyone can feel it. /spark profiler start, let it run while it's bad, /spark profiler stop. You get a link. /spark heapsummary — tells you if it's actually a memory problem or not. Nine times out of ten it's not RAM. It's a few thousand loose items from a broken sorting system, or one guy's Create contraption, or view-distance sitting at 16 because nobody changed it. Drop that to 10 first, it's free. Over-allocating is a real thing too. Give a 10 GB pack 24 GB and the GC just has more to walk through when it finally fires. Longer freezes instead of small hiccups, which feels worse. Rough numbers I actually use: light plugins 3-4 GB, mid-size pack 6-8, ATM10 tier 10-12 and 16 if you can. Java 21, G1GC, Aikar's flags as a starting point. Also worth profiling while things are fine so you've got something to compare against later. Nobody does this including me until it's too late. What's the dumbest thing that turned out to be eating your tick? Mine was a Create contraption running against a wall doing nothing for six weeks.
By
setria · 1 hour ago 1 hr
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.