The main purpose of existence is to heap java stored instance of an object
(1) java heap overflow reasons:
Program continues to create objects, more than the java heap memory.
(2) java heap overflow phenomenon:
java.lang.outofmemoryerror: java heap space
(3) java heap overflow Solutions:
With memory analyzer for analysis and to see leak or spill. If it is leaking, you can find the appropriate code by analyzing modifications. If it is spilled, consider adjusting the java heap memory size. -Xms 20m -Xmx 20m will be set to the same maximum and minimum values, it represents a non-expansion.