Don’t forget set defaultMaxPerRoute when using Apache Httpclient’s PoolingHttpClientConnectionManager . Otherwise only very few http clients will be created.
For example,
PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager(); cm.setDefaultMaxPerRoute(1000);