You mean making my max memory higher by setting the 512mb higher?
example:
-Xmx4096M
THIS FIXED IT. THANK YOU.
@Loader
For anyone having the same problem, follow these steps:
1.Go to control panel.
2.System and security.
3.System.
4.To the left is advanced system settings. Click on this.
5.You will be taken to the advanced system properties window.
6.At the bottom, click "Environment variables".
7.In system variables, you should see "_JAVA_OPTIONS I -Xmx512M".
8.Edit this variable to how much RAM you would like java to use [MAX]. (I used 5GB)
9.Make sure you click "ok" to save this and then exit.
10.You are done.