On 9/21/2018 10:31 AM, Christopher Schultz wrote:
For those interested, it looks like I was naïvely using
BasicHttpClientConnectionManager, which is totally inappropriate in a
multi-user threaded environment.

I switched to PooledHttpClientConnectionManager and that seems to be
working much better, now. :)

Why not let SolrJ just create the HttpClient itself?  Older versions of SolrJ would naively create the HttpClient with its defaults, only allowing two threads to run at once ... but newer versions of SolrJ create the HttpClient with better defaults, and now it can handle many threads without a custom HttpClient.  I do not know which version made that change, but I think it was late in 6.x or early in 7.x.

Thanks,
Shawn

Reply via email to