Considering the following scenarios:
(1) Get java.lang.OutOfMemoryError.
(2) A simple program eat up a lot of memory.
These may hint you get memory leak problem. It usually happens during long sequence testing.
The reason may be the following ones:
1. Incorrect HashTable usage.
2. Infinite cycle
You can use parameter -verbose:gc to track the memory usage.
(1) Get java.lang.OutOfMemoryError.
(2) A simple program eat up a lot of memory.
These may hint you get memory leak problem. It usually happens during long sequence testing.
The reason may be the following ones:
1. Incorrect HashTable usage.
2. Infinite cycle
You can use parameter -verbose:gc to track the memory usage.