depends on the player count, any mods and what you plan to do with it.
1GB for vanilla with fwends
2GB for mods with fwends
4GB+ if you are going to be running a public server with a lot of players
8GB+ for that but with mods
you can cheap out and do it with less but that^ is for the best quality