Default heap size can be overridden by using the -Xms and -Xmx switches to specify the initial and maximum sizes respectively:
java -Xms <initial size> -Xmx <maximum size> program
For example:
java -Xms128m -Xmx512m application
Article ID: 82, Created: 10/4/2011 at 1:53 PM, Modified: 10/4/2011 at 1:53 PM