% java -Xmx300m -Xms300m -jar algoritharium.jar
In this case, we are asking for 300 MB of memory (note no space between the switch and size and correct units are none for bytes, k for kilobytes, m for megabytes, M for megabytes, or g for gigabytes.) The -Xmx sets the maximum heap size, the -Xms flag sets the initial heap size. The operating system determines whether physical ram or paging will be used to achieve the requested memory.