High ping points to network delay; low TPS or high MSPT indicates the server is falling behind on ticks. They need different fixes.
- Find out whether everyone is affected or only one connection. Record the time, player count and activity, such as exploring new terrain.
- Measure during the slowdown with the console or a profiler supported by your server software. At 20 TPS there is about 50 ms per tick.
- Compare results before and after one change, such as a lower simulation distance or disabling a recently added plugin. Check whether memory is actually limiting performance before buying more RAM.