Ok, I'll try to play with those. Any suggestion on the size? Something else that is very interesting is that I just tried to do an aggregate add of a bunch of docs, including the one that always returned the error.
I called a function to create a SolrInputDocument and return it. I then did the following: Collection<SolrInputDocument> docs = new ArrayList<SolrInputDocument>(); SolrServer server = new CommonsHttpSolrServer(solrPostUrl); UpdateRequest ur = new UpdateRequest(); ur.setAction( UpdateRequest.ACTION.COMMIT, false, false ); //Auto Commits on Update... ur.add(docs); UpdateResponse rsp = ur.process(server); In doing this, the program simply hangs after the last command. If I let it sit there for an amount of time, it eventually returns with the error: class org.apache.solr.client.solrj.SolrServerException (java.net.SocketException: Connection reset by peer: socket write error) However, if I go to the tomcat server and restart it after I have issued the process command, the program returns and the documents are all posted correctly! Very strange behavior....am I somehow not closing the connection properly? -----Original Message----- From: Ryan McKinley [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 11:49 AM To: solr-user@lucene.apache.org Subject: Re: Index/Update Problems with Solrj/Tomcat and Larger Files I'm stabbing in the dark here, but try fiddling with some of the other connection settings: getConnectionManager().getParams().setSendBufferSize( big ); getConnectionManager().getParams().setReceiveBufferSize( big ); http://jakarta.apache.org/httpcomponents/httpclient-3.x/apidocs/org/apac he/commons/httpclient/params/HttpConnectionManagerParams.html Daley, Kristopher M. wrote: > I tried 10000 and 60000, same result. > > -----Original Message----- > From: Ryan McKinley [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 19, 2007 11:18 AM > To: solr-user@lucene.apache.org > Subject: Re: Index/Update Problems with Solrj/Tomcat and Larger Files > > Daley, Kristopher M. wrote: >> I have tried changing those settings, for example, as: >> >> SolrServer server = new CommonsHttpSolrServer(solrPostUrl); >> ((CommonsHttpSolrServer)server).setConnectionTimeout(60); >> ((CommonsHttpSolrServer)server).setDefaultMaxConnectionsPerHost(100); >> ((CommonsHttpSolrServer)server).setMaxTotalConnections(100); >> >> However, still no luck. >> > > Have you tried anything larger then 60? 60ms is not long... > > try 10000 (10s) and see if it works. > >