Java memory Exception Java.lang.OutOfMemoryError when C # connects to SOLR
Time: 20180130 09:51:13.329, message: Exception message <?xml version= "1.0" encoding= "UTF-8"?>
1<response>2<lst name="Responseheader"><intName="Status"> -</int><intName="Qtime">1</int></lst><lst name="Error"><lst name="metadata"><str name="Error-class">org.apache.solr.common.solrexception</str><str name="Root-error-class">java.lang.outofmemoryerror</str></lst><str name="msg">exception Writing Document ID1to the index; Possible analysis error.</str><intName="Code"> -</int></lst>3</response>4, Stack: In SolrNet.Impl.SolrConnection.PostStream (string Relativeurl, String contentType, Stream content, IEnumerable '1parameters)5 in SolrNet.Impl.SolrConnection.Post (string relativeurl, string s)6In SolrNet.Commands.AddCommand '1. Execute (isolrconnection connection)7In SolrNet.Impl.SolrBasicServer '1. Send (isolrcommand cmd)8In SolrNet.Impl.SolrBasicServer '1. Sendandparseheader (isolrcommand cmd)9In SolrNet.Impl.SolrBasicServer '1. Addwithboost (IEnumerable '1docs, addparameters parameters)TenIn SolrNet.Impl.SolrServer '1. AddRange (IEnumerable '1docs, addparameters parameters) OneIn SolrNet.Impl.SolrServer '1. Add (T doc, addparameters parameters) AIn SolrNet.Impl.SolrServer '1. Add (T Doc)
Write data write write to prompt Java memory exception, how to play?
Start and stop services directly through SOLR start and SOLR Stop-all, not deployed to Tomcat
Another try.
Related tools for other authors, temporarily ineffective http://blog.csdn.net/lirenzuo/article/details/54848255
The prompt cannot find the process and does not know what is going on.
The browser is accessible, the old iron has not encountered a similar situation, csdn the author did not contact on the release of memory without effect, how to solve. Java has been prompted memory anomalies, unable to write data, restart the service has no effect, restart the computer can sometimes continue to write, if you have to restart the computer, then the pit.
"Content-type"Content="Text/html;charset=utf-8"/><title>error -Server error</title> -Select. Reason:<pre> Server error</pre></p>Java.lang.OutOfMemoryError:Java heap space at Org.apache.lucene.util.PriorityQueue.<init> (Priorityqueue.java: the) at Org.apache.lucene.search.HitQueue.<init> (Hitqueue.java: -) at Org.apache.lucene.search.TopScoreDocCollector.<init> (Topscoredoccollector.java:184) at Org.apache.lucene.search.topscoredoccollector$simpletopscoredoccollector.<init> (Topscoredoccollector.java: -) at Org.apache.lucene.search.TopScoreDocCollector.create (Topscoredoccollector.java:174) at Org.apache.lucene.search.TopScoreDocCollector.create (Topscoredoccollector.java:154) at Org.apache.solr.search.SolrIndexSearcher.buildTopDocsCollector (Solrindexsearcher.java:1676) at Org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC (Solrindexsearcher.java:1857) at Org.apache.solr.search.SolrIndexSearcher.getDocListC (Solrindexsearcher.java:1578) at Org.apache.solr.search.SolrIndexSearcher.search (Solrindexsearcher.java:581) at Org.apache.solr.handler.component.QueryComponent.process (Querycomponent.java:528) at Org.apache.solr.handler.component.SearchHandler.handleRequestBody (Searchhandler.java:295) at Org.apache.solr.handler.RequestHandlerBase.handleRequest (Requesthandlerbase.java:154) at Org.apache.solr.core.SolrCore.execute (Solrcore.java:2089) at Org.apache.solr.servlet.HttpSolrCall.execute (Httpsolrcall.java:652) at Org.apache.solr.servlet.HttpSolrCall.call (Httpsolrcall.java:459) at Org.apache.solr.servlet.SolrDispatchFilter.doFilter (Solrdispatchfilter.java:257) at Org.apache.solr.servlet.SolrDispatchFilter.doFilter (Solrdispatchfilter.java:208) at Org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter (Servlethandler.java:1668) at Org.eclipse.jetty.servlet.ServletHandler.doHandle (Servlethandler.java:581) at Org.eclipse.jetty.server.handler.ScopedHandler.handle (Scopedhandler.java:143) at Org.eclipse.jetty.security.SecurityHandler.handle (Securityhandler.java:548) at Org.eclipse.jetty.server.session.SessionHandler.doHandle (Sessionhandler.java:226) at Org.eclipse.jetty.server.handler.ContextHandler.doHandle (Contexthandler.java:1160) at Org.eclipse.jetty.servlet.ServletHandler.doScope (Servlethandler.java:511) at Org.eclipse.jetty.server.session.SessionHandler.doScope (Sessionhandler.java:185) at Org.eclipse.jetty.server.handler.ContextHandler.doScope (Contexthandler.java:1092) at Org.eclipse.jetty.server.handler.ScopedHandler.handle (Scopedhandler.java:141) at Org.eclipse.jetty.server.handler.ContextHandlerCollection.handle (Contexthandlercollection.java:213) at Org.eclipse.jetty.server.handler.HandlerCollection.handle (Handlercollection.java:119) at Org.eclipse.jetty.server.handler.HandlerWrapper.handle (Handlerwrapper.java:134) at Org.eclipse.jetty.server.Server.handle (Server.java:518)</pre></body>It is obvious that jetty internal error Org.eclipse.jetty.server, then will it be better to change to Tomcat?? Mouth is better than hands.
C # connection with SOLR prompts for Java memory exceptions (jetty and Tomcat which are higher) Java.lang.OutOfMemoryError