manually set memory limit