最近solr的load比较高,通过jstack查看:
写道
"catalina-exec-13600" daemon prio=10 tid=0x00002aabb1468800 nid=0x226b runnable [0x000000004b439000]
java.lang.Thread.State: RUNNABLE
at org.apache.lucene.search.FieldValueHitQueue$OneComparatorFieldValueHitQueue.lessThan(FieldValueHitQueue.java:85)
at org.apache.lucene.search.FieldValueHitQueue$OneComparatorFieldValueHitQueue.lessThan(FieldValueHitQueue.java:54)
at org.apache.lucene.util.PriorityQueue.downHeap(PriorityQueue.java:239)
at org.apache.lucene.util.PriorityQueue.pop(PriorityQueue.java:176)
at org.apache.lucene.search.TopFieldCollector.populateResults(TopFieldCollector.java:977)
at org.apache.lucene.search.TopDocsCollector.topDocs(TopDocsCollector.java:156)
at org.apache.solr.search.SolrIndexSearcher.sortDocSet(SolrIndexSearcher.java:1715)
at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1164)
at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:375)
at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:394)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:186)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
"catalina-exec-13634" daemon prio=10 tid=0x00002aabf8b21000 nid=0x2292 runnable [0x000000004d85d000]
java.lang.Thread.State: RUNNABLE
at org.apache.lucene.index.SegmentTermPositions.next(SegmentTermPositions.java:103)
at org.apache.lucene.search.ExactPhraseScorer.nextDoc(ExactPhraseScorer.java:134)
at org.apache.lucene.search.Scorer.score(Scorer.java:89)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:364)
at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:863)
at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:617)
at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:936)
at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1157)
at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:375)
at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:394)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:186)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
"pool-6-thread-1" prio=10 tid=0x0000000008c1a800 nid=0x4b3d runnable [0x000000004133c000]
java.lang.Thread.State: RUNNABLE
at org.apache.lucene.index.SegmentTermPositions.next(SegmentTermPositions.java:103)
at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:216)
at org.apache.lucene.search.ExactPhraseScorer.advance(ExactPhraseScorer.java:179)
at org.apache.lucene.util.ScorerDocQueue.topSkipToAndAdjustElsePop(ScorerDocQueue.java:124)
at org.apache.lucene.search.DisjunctionSumScorer.advance(DisjunctionSumScorer.java:230)
at org.apache.lucene.search.BooleanScorer2.advance(BooleanScorer2.java:320)
at org.apache.lucene.search.ConjunctionScorer.doNext(ConjunctionScorer.java:99)
at org.apache.lucene.search.ConjunctionScorer.nextDoc(ConjunctionScorer.java:128)
at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:280)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:364)
at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:863)
at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:617)
at org.apache.solr.search.SolrIndexSearcher.cacheDocSet(SolrIndexSearcher.java:581)
at org.apache.solr.search.SolrIndexSearcher$2.regenerateItem(SolrIndexSearcher.java:330)
at org.apache.solr.search.LRUCache.warm(LRUCache.java:195)
at org.apache.solr.search.SolrIndexSearcher.warm(SolrIndexSearcher.java:1815)
at org.apache.solr.core.SolrCore$2.call(SolrCore.java:1166)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
java.lang.Thread.State: RUNNABLE
at org.apache.lucene.search.FieldValueHitQueue$OneComparatorFieldValueHitQueue.lessThan(FieldValueHitQueue.java:85)
at org.apache.lucene.search.FieldValueHitQueue$OneComparatorFieldValueHitQueue.lessThan(FieldValueHitQueue.java:54)
at org.apache.lucene.util.PriorityQueue.downHeap(PriorityQueue.java:239)
at org.apache.lucene.util.PriorityQueue.pop(PriorityQueue.java:176)
at org.apache.lucene.search.TopFieldCollector.populateResults(TopFieldCollector.java:977)
at org.apache.lucene.search.TopDocsCollector.topDocs(TopDocsCollector.java:156)
at org.apache.solr.search.SolrIndexSearcher.sortDocSet(SolrIndexSearcher.java:1715)
at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1164)
at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:375)
at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:394)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:186)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
"catalina-exec-13634" daemon prio=10 tid=0x00002aabf8b21000 nid=0x2292 runnable [0x000000004d85d000]
java.lang.Thread.State: RUNNABLE
at org.apache.lucene.index.SegmentTermPositions.next(SegmentTermPositions.java:103)
at org.apache.lucene.search.ExactPhraseScorer.nextDoc(ExactPhraseScorer.java:134)
at org.apache.lucene.search.Scorer.score(Scorer.java:89)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:364)
at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:863)
at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:617)
at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:936)
at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1157)
at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:375)
at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:394)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:186)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
"pool-6-thread-1" prio=10 tid=0x0000000008c1a800 nid=0x4b3d runnable [0x000000004133c000]
java.lang.Thread.State: RUNNABLE
at org.apache.lucene.index.SegmentTermPositions.next(SegmentTermPositions.java:103)
at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:216)
at org.apache.lucene.search.ExactPhraseScorer.advance(ExactPhraseScorer.java:179)
at org.apache.lucene.util.ScorerDocQueue.topSkipToAndAdjustElsePop(ScorerDocQueue.java:124)
at org.apache.lucene.search.DisjunctionSumScorer.advance(DisjunctionSumScorer.java:230)
at org.apache.lucene.search.BooleanScorer2.advance(BooleanScorer2.java:320)
at org.apache.lucene.search.ConjunctionScorer.doNext(ConjunctionScorer.java:99)
at org.apache.lucene.search.ConjunctionScorer.nextDoc(ConjunctionScorer.java:128)
at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:280)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:364)
at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:863)
at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:617)
at org.apache.solr.search.SolrIndexSearcher.cacheDocSet(SolrIndexSearcher.java:581)
at org.apache.solr.search.SolrIndexSearcher$2.regenerateItem(SolrIndexSearcher.java:330)
at org.apache.solr.search.LRUCache.warm(LRUCache.java:195)
at org.apache.solr.search.SolrIndexSearcher.warm(SolrIndexSearcher.java:1815)
at org.apache.solr.core.SolrCore$2.call(SolrCore.java:1166)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)