I thought I would give you all a guide to allocating more memory for Java. It's there to stop all that "Minecraft ran outa memory". It is very simple: Don't forget if you have 4GB ram then only give it 2gb, where as if you have 8GB then give 6GB or whatever you like.
Step 1. Open CONTROL PANEL.
Step 2. Type 'Java' inside the 'Search Control Panel' box.
Step 3. Click the Java icon that pops up.
Step 4. Click the Java tab.
Step 5. Click View...
Step 6. Assure there is only ONE line in here, any more lines could cause issues. If you have multiple lines uninstall all versions of Java from your system and... ...download Java JDK 7 from the following link. Make sure to get the x64 version if you have a 64-bit OS. http://jdk7.java.net/download.html">http://jdk7.java.net/download.html
Step 7. Change Runtime Parameters. I have mine set to: -Xincgc -Xmx2048M
Change it depending on how much RAM you have. For 32-bit Operating Systems 768M is recommended. If you have 64-bit, or that doesn't work, continue to try the following 1G 1536M 2G As I said, this varies depending on how much System RAM you have.
Step 8. Click OK.
Step 9. (OPTIONAL) Restart your system, not necasary.