have you tried to use the httpsolrclient as singletons? Create them only once and reuse. Not sure but I think it’s a best practice.
Ciao, Vincenzo > On 29 Jun 2021, at 03:59, Reej Nayagam <reej...@gmail.com> wrote: > > Hi Team, > Any advise is highly appreciated. > Do we need to use a singleton connection of a connection pool. Please kindly > advise > > Thanks > Reej > > Sent from my iPhone > > Begin forwarded message: > >> From: Reej Nayagam <reej...@gmail.com> >> Date: 28 June 2021 at 11:53:58 AM SGT >> To: Solr <users@solr.apache.org>, solr-user Lucene >> <solr-u...@lucene.apache.org> >> Subject: HTTPSolrClient >> >> >> Hi Team, >> We recently upgraded to solr8.8.2 >> We have replaced all our httpsolrserver connections to httpsolrclient and >> haven't explicitly closed the connections. >> Even in solr4 we haven't closed the connections. But now our main >> application has become too slow and it was said there is TIME_WAIT from the >> search server. >> Can you advise is it necessary to close each httpsolrclient connection in >> finally clause or does jetty takes care of the connectons timeout. >> >> Thanks, >> Reej