Hi!
Today I'd added loginfo to Solr here:
~/solr-3.5/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
to method
private void writeResponse(SolrQueryResponse solrRsp, ServletResponse
response,
QueryResponseWriter responseWriter,
SolrQueryRequest solrReq, Method reqMethod)
throws IOException {
at
String charset = ContentStreamBase.getCharsetFromContentType(ct);
Writer out = (charset == null || charset.equalsIgnoreCase("UTF-8"))
? new OutputStreamWriter(response.getOutputStream(), UTF8)
: new OutputStreamWriter(response.getOutputStream(), charset);
>>log here
out = new FastWriter(out);
>> log here
responseWriter.write(out, solrReq, solrRsp);
>> log here
out.flush();
>> log here
and what I have:
Dec 21, 2011 8:44:26 AM org.apache.solr.servlet.SolrDispatchFilter
writeResponse
WARNING: webapp=/solr path=/select/
params={fl=RecordID,score&start=0&q=mobile&rows=2000} hits=18887 status=0
QTime=2846 OutputStreamWriterTime=1
Dec 21, 2011 8:44:26 AM org.apache.solr.servlet.SolrDispatchFilter
writeResponse
WARNING: webapp=/solr path=/select/
params={fl=RecordID,score&start=0&q=mobile&rows=2000} hits=18887 status=0
QTime=2846 FastWriterTime=0
Dec 21, 2011 8:45:41 AM org.apache.solr.servlet.SolrDispatchFilter
writeResponse
WARNING: webapp=/solr path=/select/
params={fl=RecordID,score&start=0&q=mobile&rows=2000} hits=18887 status=0
QTime=2846 responseWriterTime=74207
Dec 21, 2011 8:45:41 AM org.apache.solr.servlet.SolrDispatchFilter
writeResponse
WARNING: webapp=/solr path=/select/
params={fl=RecordID,score&start=0&q=mobile&rows=2000} hits=18887 status=0
QTime=2846 outFlushTime=0
This is the first query, so Tomcat was started and I'd run this query. This
is on production only on one shard:
* ~29M docs
* 11 fields
* ~105M terms
* size of shard is: 13GB
Have you any ideas, why so long or it is normal read speed time for
responseWriter of first query???
P.S. If I change a query patameter, for example on any keyword the
situations is similar.
Thanks.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Poor-performance-on-distributed-search-tp3590028p3605074.html
Sent from the Solr - User mailing list archive at Nabble.com.