Set mem limit as int