setting max connections/threads params