On 5/16/2018 7:11 AM, Александр Шестак wrote:

Hi, I have a question about unpredictable CPU usage by solr.

We have recently migrated our application from Solr 4.6.1 to Solr 7.1.0. We use master/slave approach. And now we have noticed that CPU usage of master/slave in passive state (no request to Solr are performed) is none zero. When we use Solr 4.6.1 and use tomcat for Solr deploying then CPU usage is almost 0. With Solr 7.1.0 cpu usage is varying from 0% to 40% (it jumps every time).


The information you've obtained about where the CPU time is spent shows that your master server is spending its CPU time in Jetty code, not Solr code.  I do not know why.  Because it's code not written by this project, there may not be much we can do about it, other than encourage you to upgrade Solr so that you have a newer version of Jetty.  Version 7.1.0 has Jetty 9.3.20, but 7.3.0 and 7.3.1 have Jetty 9.4.8.

The slave appears to be spending time in Lucene's merge code.  Which is very odd ... merging should normally happen on the master, usually not on slaves.

Thanks,
Shawn

Reply via email to