I'm guessing (and it's just a guess) that what's happening is that the container is queueing up your requests while waiting for the other connections to close, so Mikhail's suggestion seems like a good idea. Best Erick On Wed, Dec 14, 2011 at 12:28 AM, samarth s wrote: > The updates to the master are user driven, and are needed to be > visible quickly. Hence, the high frequency of replication. It may be > that too many replication requests are being handled at a time, but > why should that result in half closed connections? > > On Wed, Dec 14, 2011 at 2:47 AM, Erick Erickson wrote: >> Replicating 40 cores every 20 seconds is just *asking* for trouble. >> How often do your cores change on the master? How big are >> they? Is there any chance you just have too many cores replicating >> at once? >> >> Best >> Erick >> >> On Tue, Dec 13, 2011 at 3:52 PM, Mikhail Khludnev >> wrote: >>> You can try to reuse your connections (prevent them from closing) by >>> specifying  -Dhttp.maxConnections=N >>> in jvm startup params. At client JVM!. Number should be chosen considering >>> the number of connection you'd like to keep alive. >>> >>> Let me know if it works for you. >>> >>> On Tue, Dec 13, 2011 at 2:57 PM, samarth s wrote: >>> >>>> Hi, >>>> >>>> I am using solr replication and am experiencing a lot of connections >>>> in the state CLOSE_WAIT at the master solr server. These disappear >>>> after a while, but till then the master solr stops responding. >>>> >>>> There are about 130 open connections on the master server with the >>>> client as the slave m/c and all are in the state CLOSE_WAIT. Also, the >>>> client port specified on the master solr server netstat results is not >>>> visible in the netstat results on the client (slave solr) m/c. >>>> >>>> Following is my environment: >>>> - 40 cores in the master solr on m/c 1 >>>> - 40 cores in the slave solr on m/c 2 >>>> - The replication poll interval is 20 seconds. >>>> - Replication part in solrconfig.xml in the slave solr: >>>> >>>>           >>>> >>>>                   >>>>                   $mastercorename/replication >>>> >>>>                   >>>>                   00:00:20 >>>>                   >>>>                   5000 >>>>                   10000 >>>>           >>>>   >>>> >>>> Thanks for any pointers. >>>> >>>> -- >>>> Regards, >>>> Samarth >>>> >>> >>> >>> >>> -- >>> Sincerely yours >>> Mikhail Khludnev >>> Developer >>> Grid Dynamics >>> tel. 1-415-738-8644 >>> Skype: mkhludnev >>> >>>   > > > > -- > Regards, > Samarth