configure max memory size