> SolrClient Are singletons and are thread safe
You should reuse them

--
mobile: 3498513251
skype: free.dev

> On 5 Feb 2022, at 02:49, 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

Reply via email to