JJ/HM: Set max merge docs policy; Determine number of processors for threadpool