How to find java heap size
Java heap size of a jvm can be set using -Xms & -Xmx while starting the JVM
-Xms sets initial heap size. The default heap size is 2097152 (2MB).
-Xmx sets the maximum size to which the Java heap can grow. When not specified, maximum heap size is 64M.