RAM is one of the most important factors for server performance. Too little RAM causes lag, crashes, and a bad player experience.
Minecraft
Vanilla: 2-4 GB for 1-20 players. With mods/modpacks: 6-10 GB. ATM10: 8-12 GB.
FiveM (GTA V)
Standard: 4 GB. With many scripts and MySQL: 6-8 GB. Large RP servers: 8-16 GB.
Rust
Minimum 6 GB. Large maps: 8-12 GB. Modded servers: 10-16 GB.
Other games
Palworld: 4-8 GB. Valheim: 2-4 GB. Terraria: 1-2 GB. Satisfactory: 4-6 GB. Project Zomboid: 4-6 GB. ARK: 8+ GB per map.