Analyze Heap Usage

The Java heap is a repository for active objects, dead objects, and free memory. The heap size determines the volume of objects stored in the repository. When the volume of the objects approaches the maximum heap size, the garbage collection happens. If the heap size is large, then the full garbage collection is slower and happens less frequently.