High RAM usage is usually caused by one of three things: the number of loaded chunks, the number of players online, or how many plugins or mods you have installed.
Too many loaded chunks
When you load large areas with terrain generation, build machines, or farms, all those chunks stay in memory. If you've explored a huge area or generated a big world border, those chunks consume RAM until they're unloaded. Reducing your view distance and simulation distance will lower RAM usage by keeping fewer chunks loaded at once.
Player count and activity
Each player online uses some RAM, and active players building things load more chunks. Multiple players spread out across the map will use more RAM than a few players in one area.
Mods and plugins
Every mod or plugin you install adds to your server's memory footprint. A server with 50 mods will use more RAM than one with 10, even if both are idle. If you've added a lot of plugins or a large modpack, that's likely your main RAM consumer.
How much RAM do you need?
It depends on your world size, player count, and mod/plugin count. Start with what your current plan offers, monitor your usage, and upgrade only if you see consistent out-of-memory errors in the console. High RAM usage alone isn't a problem as long as it's within your plan's limit.
If your RAM usage is fine but TPS is low, your bottleneck is CPU, not memory. See Understanding TPS and Lag for solutions.