Enable monitoring memory usage and configuring a refresh interval.