move out all methods to get memory from memorymonitor to PlatformUtil so they can be used elsewhere
correct getting virt memory in getAllMemInfo()
log memory usage after adding image