Originally posted by Manfred Leonhardt:
I have no idea why your memory usage keeps going up. But I do know that calling System.gc() method will not always run the garbage collection. It is up to the JVM when garbage collections takes place. The method only provides a means to "hint" that we want garbage collection to take place soon!