- Be careful giving Memory to Java, I recommend leaving at least 2gb to your computer for the operating system and any background processes. This can result in Ram getting overloaded and PC crashes
Alright so in this tutorial we are going to be learning how to give Java access to more of the computers Ram than it is given by Default. It is a simple and easy process, here is how to do it.
Step 1 Open your Java Options
- Open CONTROL PANEL.
- Type 'Java' inside the 'Search Control Panel' box.
- Click the Java icon that pops up.
- Click the Java tab.
- Click View...
Step 2 Change the Amount of Ram
Here is where you are going to change the amount of ram that java has access to. Under "Java Runtime Parameters" you are going to want to type in -Xmx**** and replace the **** with the amount of ram you want to add. This is going to be in Megabytes so if you want to add (for example) 2 Gigabytes of Memory you are going to want to type -Xmx2048. If you want to find the number for you just search up a Mb to Gb converter.
Step 3 Finish Up
Click "Ok" and then "Ok" again. This may require a computer restart to take effect.