Considering The Following Scenarios:
(1) Get java.lang.outofMemoryError.
(2) a Simple Program Eat Up A Lot of Memory.
....................... ..
The REason May Be The Following Ons:
INCORRECT HashTable Usage.
2. Infinite Cycle
You can use parameter
-verbose: GC to TRACK THE MEMORY USAGE.