The following JVM startup options can be used to control
the Heap size.
Initial Heap Size:
-Xms256m
Maximum Heap Size:
-Xmx256m
The following JVM startup options can be used for JVM OOME debugging:
-XX:-HeapDumpOnOutOfMemoryError
-XX:-HeapDumpPath=./java_pid<pid>.hprof