Java uses Heap to put all the objects. Setting minimum and maximum size of heap is useful. Following syntax should be used:

Java Code:
java -Xms 64M -Xmx 64M