Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扫描的分区数很多的时候(跨6个月查询),报错 #11

Closed
muyannian opened this issue Mar 20, 2013 · 3 comments
Closed

扫描的分区数很多的时候(跨6个月查询),报错 #11

muyannian opened this issue Mar 20, 2013 · 3 comments
Labels

Comments

@muyannian
Copy link
Owner

2013-03-20 09:59:22 SolrCore [ERROR] org.apache.solr.common.SolrException: java.lang.Exception: 10.246.45.43:51111/solr/rpt_p4padhoc_product
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:294)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1495)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:358)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.Exception: 10.246.45.43:51111/solr/rpt_p4padhoc_product
at org.apache.solr.handler.component.HttpCommComponent$1.call(SearchHandler.java:461)
at org.apache.solr.handler.component.HttpCommComponent$1.call(SearchHandler.java:418)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.solr.common.SolrException: java.lang.Exception: 10.246.45.22:51160/solr/rpt_p4padhoc_product@2012111 org.apache.solr.common.SolrException: java.lang.Exception: 10.246.45.22:51160/solr/rpt_p4padhoc_product@2012111 at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:294) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1495) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:358) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.Exception: 10.246.45.22:51160/solr/rpt_p4padhoc_product@2012111 at org.apache.solr.handler.component.HttpCommComponent$1.call(SearchHandler.java:461) at org.apache.solr.handler.component.HttpCommComponent$1.call(SearchHandler.java:418) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441

@muyannian
Copy link
Owner Author

初步定为为jetty本身有最大连接数限制
启动jetty的时候,用下面的参数试试看

org.mortbay.thread.concurrent.ThreadPool threads=new org.mortbay.thread.concurrent.ThreadPool();
threads.setCorePoolSize(512);
threads.setMaximumPoolSize(512);
SelectChannelConnector conn=new SelectChannelConnector();
conn.setPort(port);
conn.setLowResourcesConnections(10240);
server.setThreadPool(threads);
server.setConnectors(new Connector[] { conn });
server.setStopAtShutdown( true );

@muyannian
Copy link
Owner Author

Uploading QQ截图20130320134241.png . . .

@muyannian
Copy link
Owner Author

已经解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant