add resque restarting based on mem