Update monitor_mem2.sh