Fix for Tomcat / SOLR Error java.net.SocketException: Connection reset by peer: socket write error

I came across this issue when trying to index data that contained a large number of literal key/values. By a process of elimination, I determined that Tomcat’s (6.x) maxHttpHeaderSize was being exceeded so I bumped it up a bit. Edit  the “Connector” element in <tomcat>/conf/server.xml as below. Hope this helps.

<Connector port="8080" protocol="HTTP/1.1"
 connectionTimeout="500000"
 redirectPort="8443"
 URIEncoding="UTF-8"
 maxPostSize="0"
 maxHttpHeaderSize="131072"
 />
Advertisements

One Comment

  1. Thanx for the blog. I came up with an issue exacty of these type.And was able to resolve it. Again thanx a ton.

    Reply

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s