lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fuad Efendi" <f...@efendi.ca>
Subject RE: SOLR Performance Tuning: Disable INFO Logging.
Date Sun, 20 Dec 2009 20:19:31 GMT
We were talking about GC options a lot; don't forget to enclose following
into "if (log.isInfoEnabled())":

...
    final NamedList<Object> responseHeader = new SimpleOrderedMap<Object>();
    rsp.add("responseHeader", responseHeader);
    NamedList toLog = rsp.getToLog();
    //toLog.add("core", getName());
    toLog.add("webapp", req.getContext().get("webapp"));
    toLog.add("path", req.getContext().get("path"));
    toLog.add("params", "{" + req.getParamString() + "}");
    handler.handleRequest(req,rsp);
    setResponseHeaderValues(handler,req,rsp);
    StringBuilder sb = new StringBuilder();
    for (int i=0; i<toLog.size(); i++) {
     	String name = toLog.getName(i);
     	Object val = toLog.getVal(i);
     	sb.append(name).append("=").append(val).append(" ");
    }
    log.info(logid +  sb.toString());...
...


-Fuad


> -----Original Message-----
> From: Fuad Efendi [mailto:fuad@efendi.ca]
> Sent: December-20-09 2:54 PM
> To: solr-user@lucene.apache.org
> Subject: SOLR Performance Tuning: Disable INFO Logging.
> 
> After researching how to configure default SOLR & Tomcat logging, I
> finally
> disabled INFO-level for SOLR.
> 
> And performance improved at least 7 times!!! ('at least 7' because I
> restarted server 5 minutes ago; caches are not prepopulated yet)
> 
> Before that, I had 300-600 ms in HTTPD log files in average, and 4%-8% I/O
> wait whenever "top" commands shows SOLR on top.
> 
> Now, I have 50ms-100ms in average (total response time logged by HTTPD).
> 
> 
> P.S.
> Of course, I am limited in RAM, and I use slow SATA... server is
> moderately
> loaded, 5-10 requests per second.
> 
> 
> P.P.S.
> And suddenly synchronous I/O by Java/Tomcat Logger slows down performance
> much higher than read-only I/O of Lucene.
> 
> 
> 
> Fuad Efendi
> +1 416-993-2060
> http://www.linkedin.com/in/liferay
> 
> Tokenizer Inc.
> http://www.tokenizer.ca/
> Data Mining, Vertical Search
> 
> 
> 




Mime
View raw message