basic real time memory monitoring