Implement the watchdog for Erlang memory monitoring and execution of GC