add memory log to get Heap size