This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
java -Xms1024M -Xmx2048M -jar minecraft_server.1.8-pre3.jar
As for running it it can be done through a control panel like Multicraft, or if you are hosting it on your computer create a file called start.bat and inside it have this text below.
The 1024 is the minimum ram, and the 2048 is max ram, both in MB, and both can be changed to whatever you want.
Change minecraft_server.1.8-pre3.jar in that scrip to whatever the server jar is called in future updates.
More in depth information can be found at http://minecraft.gamepedia.com/Tutorials/Setting_up_a_server
Check out my free plugin to merge mobs, saving your server and players from lag!