AMBARI-3762. Running into heap space issue while adding ~900 hosts. (odiachenko)