adding max memory to batch queue