Take care with the -heapsize command. As it is explained in the tutorial Sp1nn3y linked you to, it shouldn't go above half of your total RAM (or it will start using all your RAM and leave no "space" for other programs running on the background, such as the OS and other stuff), which in this case should go as: -heapsize 1048576, just like I have in mine (I also have 2Gb of RAM).