force GC before measuring used java heap

without GC, used memory includes objects that are not referenced
from anywhere, which makes 'used java heap' rather meaningless.

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>