lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@gmail.com>
Subject Re: Connection mismanagement in Solrj?
Date Wed, 28 Jan 2009 04:24:33 GMT
if you are making requests in parallel , then it is likely that you
see many connections open at a time. They will get cleaned up over
time . But if you wish to clean them up explicitly use
httpclient.getHttpConnectionManager()r#closeIdleConnections()

On Tue, Jan 27, 2009 at 8:22 PM, Walter Underwood
<wunderwood@netflix.com> wrote:
> Making requests in parallel, using the default connection manager,
> which is multi-threaded, and we are reusing a single CommonsHttpSolrServer
> for all requests.
>
> wunder
>
> On 1/26/09 10:59 PM, "Noble Paul നോബിള്‍  नोब्ळ्" <noble.paul@gmail.com>
> wrote:
>
>> are you making requests in parallel ?
>> which ConnectionManager are you using for HttpClient?
>>
>> On Tue, Jan 27, 2009 at 11:58 AM, Noble Paul നോബിള്‍  नोब्ळ्
>> <noble.paul@gmail.com> wrote:
>>> you can set any connection parameters for the HttpClient and pass on
>>> the instance to CommonsHttpSolrServer and that will be used for making
>>> requests
>>>
>>> make sure that you are not reusing instance of CommonsHttpSolrServer
>>>
>>> On Tue, Jan 27, 2009 at 10:59 AM, Walter Underwood
>>> <wunderwood@netflix.com> wrote:
>>>> We just switched to Solrj from a home-grown client and we have a huge
>>>> jump in the number of connections to the server, enough that our
>>>> load balancer was rejecting connections in production tonight.
>>>>
>>>> Does that sound familiar? We're running 1.3.
>>>>
>>>> I set the timeouts and connection pools to the same values I'd
>>>> used in my other code, also based on HTTPClient.
>>>>
>>>> We can roll back to my code temporarily, but we want some of
>>>> the Solrj facet support for a new project.
>>>>
>>>> wunder
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> --Noble Paul
>>>
>>
>>
>
>



-- 
--Noble Paul

Mime
View raw message