问题
We have successfully installed Solr 4.4. We have done setup in windows 7. With the tomcat 8.0, Java jre 7 and Solr 4.4. We have done commit for some documents. But unfortunately after some commit of document our Apache tomcat server is stopped. And at time we get the following error in application.
System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size) at SolrNet.Impl.SolrConnection.CopyTo(Stream input, Stream output) at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable
1 parameters) at SolrNet.Impl.SolrConnection.Post(String relativeUrl, String s) at SolrNet.Impl.SolrBasicServer
1.SendAndParseHeader(ISolrCommand cmd) at ....
回答1:
it might be issue of network or invalid data.
I had an same issue. I was checked my network and there was some security issues.You should check your network settings.
来源:https://stackoverflow.com/questions/19138200/apache-tomcat-server-is-stopped-after-several-commit-of-documents-in-solr-4-4