Set maximum memory to use (limit)