For a Minecraft server to run on your desktop, there should be at least 1 GB of RAM. Moroever, if you are using Windows or Linux-based distribution, you need an additional 1 GB of physical RAM, so graphics won't lag while playing.