This wikiHow teaches you how to increase the amount of memory (RAM) that your Windows 7 computer's Java program can use. Increasing the amount of RAM that Java can use will allow it to run quicker and consume more system resources, thus allowing you to complete Java processes faster.

Steps

  1. 1
    Update Java if necessary. If you aren't running the most current version of Java, update to it by doing the following:
    • Go to https://www.java.com/en/download/ in your computer's web browser.
    • Click Free Java Download in the middle of the page.
    • Click Agree and Start Free Download at the top of the page.
    • Double-click the downloaded setup file.
    • Follow the on-screen installation prompts.
  2. 2
    Advertisement
  3. 3
    Click Control Panel. It's on the right side of the Start menu. Doing so will open the Control Panel window.
  4. 4
    Click the "View by" drop-down box. This option is in the upper-right side of the page. A drop-down menu will appear.
  5. 5
    Click Large icons. It's in the drop-down menu. You should see the Control Panel window contents change to display individual icons.
  6. 6
    Click Java. This option is in the Control Panel window. The Java window will open.
    • In some cases, you'll click Java (32-bit) here.
  7. 7
    Click the Java tab. It's at the top of the Java window. Then click View.
  8. 8
    Double-click the "Runtime Parameters" text box. This is a blank text box to the right of the most current version number of Java. You should see your mouse cursor appear in the text box.
  9. 9
    Enter a memory value. Type -Xms followed by the number of megabytes of memory you want to use and the letter "m" (for example, -Xms512m to apply 512 megabytes of RAM to Java). Other common values include the following:
    • Type -Xms1024m to assign 1GB of memory to Java.
    • Type -Xms2048m to assign 2GB of memory to Java.
    • Type -Xms3072m to assign 3GB of memory to Java.
  10. 10
    Press Enter. This will add your typed value to the text box.
  11. 11
    Click Apply. It's at the bottom of the window. Doing so applies your settings.
  12. 12
    Click OK. This is at the bottom of the window. Clicking it closes the Java window. Your Java program should now use your specified amount of RAM.
  13. Advertisement

Community Q&A

  • Question
    What if I don't see Java? Should I install it?
    Community Answer
    Community Answer
    Yes. Java can help run games and computer programs, and it's free to install.
  • Question
    A program called Geogebra won't install. It requires Java VM. Why?
    Wizzwizz4
    Wizzwizz4
    Community Answer
    Your program is programmed in Java. Java is designed so that one program can run across multiple computers, but in order for that to work Java needs to be installed on each of those computers. That way, only Java has to be reprogrammed to work on different computers instead of all of the programs that use Java.
Advertisement

Warnings

  • Running Java with modified memory settings may cause your computer to slow down when attempting to use other programs (e.g., a web browser).
    ⧼thumbs_response⧽
Advertisement

About This Article

Jack Lloyd
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 522,563 times.
How helpful is this?
Co-authors: 17
Updated: November 20, 2020
Views: 522,563
Categories: Java | Windows 7
Advertisement