Technology Microsoft Software & solutions

How to Increase the Virtual Memory Allocation in Java

    • 1). If you don't already have Java installed, download the Java Development kit installation program from the Oracle-Sun website and run it to install Java on your machine.

    • 2). You can execute your Java program from the command line using the command
      "java progName"

    • 3). If you need to run the same program using more virtual memory, add the argument -Xmx followed by a size in K or M, with no intervening space. For example, type

      "java -Xmx500M progName"

      to add 500 megabytes of virtual memory.



Leave a reply