SoLR性能问题

时间:2014-01-30 14:38:08

标签: solr lucene jetty

我正在研究solr 4.2.1 jetty,我们也面临着一些性能问题和堆内存溢出问题。

所以我正在寻找这种例外的实际原因。然后我对不同的solr查询应用了负载测试。几分钟后出现以下错误:

  

警告:oejs.Response:在500之前提交{msg =软件造成的   连接中止:套接字写

     

引起:java.net.SocketException:软件导致连接中止:   套接字写错误

     

SEVERE:null:org.eclipse.jetty.io.EofException

我还尝试将maxIdleTime设置为300000毫秒。但仍然得到同样的错误。

有什么想法吗? 请帮忙,如何解决这个问题。

谢谢, MAYUR

堆栈跟踪:

  

SEVERE:null:org.eclipse.jetty.io.EofException           在org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)           at org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:507)           在org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:147)           在org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)           at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)           at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)           at sun.nio.cs.StreamEncoder.write(Unknown Source)           at java.io.OutputStreamWriter.write(Unknown Source)           在org.apache.solr.util.FastWriter.flush(FastWriter.java:141)           在org.apache.solr.util.FastWriter.write(FastWriter.java:55)           at org.apache.solr.response.XMLWriter.writePrim(XMLWriter.java:356)           在org.apache.solr.response.XMLWriter.writeStr(XMLWriter.java:295)           at org.apache.solr.schema.StrField.write(StrField.java:67)           at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:130)           at org.apache.solr.response.XMLWriter.writeSolrDocument(XMLWriter.java:199)           at org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:275)           在org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:172)           at org.apache.solr.response.XMLWriter.writeResponse(XMLWriter.java:111)           at org.apache.solr.response.XMLResponseWriter.write(XMLResponseWriter.java:39)           at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:627)           在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:358)           在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)           在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1307)           在org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)           在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)           在org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)           在org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)           在org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)           在org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)           在org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)           在org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)           在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)           at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)           在org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)           在org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)           在org.eclipse.jetty.server.Server.handle(Server.java:365)           at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)           at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)           at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)           at org.eclipse.jetty.server.AbstractHttpConnection $ RequestHandler.headerComplete(AbstractHttpConnection.java:988)           在org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)           在org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)           at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)           在org.eclipse.jetty.server.bio.SocketConnector $ ConnectorEndPoint.run(SocketConnector.java:264)           在org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)           在org.eclipse.jetty.util.thread.QueuedThreadPool $ 3.run(QueuedThreadPool.java:543)           at java.lang.Thread.run(Unknown Source)引起:java.net.SocketException:软件导致连接中止:socket   写错误           at java.net.SocketOutputStream.socketWrite0(Native Method)           在java.net.SocketOutputStream.socketWrite(未知来源)           在java.net.SocketOutputStream.write(未知来源)           在org.eclipse.jetty.io.ByteArrayBuffer.writeTo(ByteArrayBuffer.java:359)           在org.eclipse.jetty.io.bio.StreamEndPoint.flush(StreamEndPoint.java:164)           在org.eclipse.jetty.io.bio.StreamEndPoint.flush(StreamEndPoint.java:194)           在org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:838)           ......还有46个

0 个答案:

没有答案