set connectionsPerHost to 20. Default value is 100 and that is causing
java.lang.OutOfMemoryError: unable to create new native thread