lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Fondacci <>
Subject Solr / Tomcat bottleneck while parsing http headers
Date Tue, 01 Jul 2008 13:47:37 GMT

Hello all,

I've searched the web and this forum without finding any answer to the
problem I have...

So here it is :

Our application performs queries to solr.
Our application is deployed on a Tomcat 6.0.14 on machine A.
Solr is deployed on a dedicated Tomcat 6.0.14 server running on a distinct
machine B.
We are using JDK 1.6.0_02-b05.

We perform queries to solr in 2 ways :
1. Performing a http get with an URL containing our query (We use the
HttpClient / GetMethod from apache commons).
URL is like :

2. Performing a http post on this URL : http://xxxx:8080/solr/select/ and a
set of 12 NameValuePair.

Everything works fine when the server load is light...
When the server load is heavy, we observe a serious bottleneck on solr
responses. We added logs to monitor the time of the remote call to solr, and
sometimes we get response times of hundreds of seconds (!). The average of
those peaks is 200-300s. It happens randomly on both methods we use to query

We performed deep jvm analysis (using jprofiler) to observe what was going
on on the solr server. When the problem occurs, we can see threads which are
stucked with the following stack trace :

at Method) 



The problem might be related to tomcat... 
Does anyone know what is going on ? 
Or if solr hold some "locks" which may affect Tomcat connector ?
May it be related to solr configuration ? I tried to switch the
useColdSearcher parameter to true to avoid waiting threads. Using most of
the default solr settings. We do use lazy fields.

If it helps I can publish our solrconfig.xml file...

Any help / clue / suggestions would be highly appreciated.
Thank you.


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message