Thursday, April 2, 2009

Heap

If the program memory consumption is high it gives Java.lang.OutofMemory.Exception
to avoid add increase the size of heap by following command.

java -Xms -Xmx

Defaults are:

java myProgram -Xms32m -Xmx128m

No comments: