Added a Garbage Collector task to run the gc every 10 s.
With this, I think 128 m is too much for the initial heap space, 64 m may be enough.
Look at the 2 snapshots for comparison.
Hi, we think it's not a good idea to call System.gc() every few seconds. The GC is usually smart enough to know by itself when it should start collecting garbage.