get max memory value