Setting up the mem limit