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: October 4, 2011 at 2:53 PM, Modified: October 4, 2011 at 2:53 PM