SolrClient has a close() method. On Fri, Feb 4, 2022 at 8:41 PM Walter Underwood <[email protected]> wrote:
> Is the code talking to 10,000 different Solr servers? > > Create one SolrClient per server and reuse it for all traffic to that > server. It keeps a pool of connections. > > wunder > Walter Underwood > [email protected] > http://observer.wunderwood.org/ (my blog) > > > On Feb 4, 2022, at 5:49 PM, Steven White <[email protected]> wrote: > > > > Hi everyone, > > > > This simple code, is causing me memory and thread loak (threads remain in > > "sleeping" mode): > > > > for (int j = 0; j < 10000; j++) > > { > > SolrClient solrClient = new > > HttpSolrClient.Builder("foo-bar").build(); > > } > > > > Any idea why? Is there an unbuild(), release() or something I have to > call? > > > > I'm on Solr 8.11.1 > > > > Thanks > > > > Steven > >
