set maximum memory limit for planners