Sounds like you have the java version. Good.
Are you using a launcher that allows you to check / set RAM allocation?
Do you have 64 bit java installed?
By default, if you go to java.com and download the latest, you'll only get the 32 bit version. If you want the 64 bit version, you have to...