tcp channel time out on connection pooldear all,<br/><br/>I havae a service which is accessible through tcp protocol and after some time, the service gets closed due to the following message :<br/><strong>&quot;<span lang=FR>A connection has exceeded the idle timeout of this connection pool (00:02:00) and been closed</span>&quot;<br/><br/></strong>Then of course m next service call is failing<br/><br/>How this pool is really working for that protocole ?<br/>Do we have to increase the pool size or pool time out ? doe sthis will help in all situation  ?<br/><br/>What cause the pool access to be idle ?<br/><br/>Thnaks helping on bets way to solved that issue<br/><br/>regards<br/>serge<br/><hr class="sig">Your experience is build from the one of others© 2009 Microsoft Corporation. All rights reserved.Wed, 08 Jul 2009 13:11:26 Zf61914bc-c2a9-465e-b05e-d2c50a88efc5http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#f61914bc-c2a9-465e-b05e-d2c50a88efc5http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#f61914bc-c2a9-465e-b05e-d2c50a88efc5Serge Calderarahttp://social.msdn.microsoft.com/Profile/en-US/?user=Serge%20Calderaratcp channel time out on connection pooldear all,<br/><br/>I havae a service which is accessible through tcp protocol and after some time, the service gets closed due to the following message :<br/><strong>&quot;<span lang=FR>A connection has exceeded the idle timeout of this connection pool (00:02:00) and been closed</span>&quot;<br/><br/></strong>Then of course m next service call is failing<br/><br/>How this pool is really working for that protocole ?<br/>Do we have to increase the pool size or pool time out ? doe sthis will help in all situation  ?<br/><br/>What cause the pool access to be idle ?<br/><br/>Thnaks helping on bets way to solved that issue<br/><br/>regards<br/>serge<br/><hr class="sig">Your experience is build from the one of othersThu, 02 Jul 2009 12:52:03 Z2009-07-02T12:52:03Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#f29d0e7f-e295-497b-964b-53e929cdac8ehttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#f29d0e7f-e295-497b-964b-53e929cdac8eLars Wilhelmsenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lars%20Wilhelmsentcp channel time out on connection poolHi Serge,<br/> <br/>  I think you will have to tweak the MaxConnections &amp; IdleTimeout parameters of the NetTcpBinding.<br/> <br/>  Some more information:<br/> <br/>  <a title="http://kennyw.com/indigo/181" href="http://kennyw.com/indigo/181" title="http://kennyw.com/indigo/181">http://kennyw.com/indigo/181</a> <br/>  <a title="http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d4834cb3-f937-40cf-898b-3eabbd31078e/" href="http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d4834cb3-f937-40cf-898b-3eabbd31078e/" title="http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d4834cb3-f937-40cf-898b-3eabbd31078e/">http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d4834cb3-f937-40cf-898b-3eabbd31078e/</a> <br/> <br/>  --larsw<br/><hr class="sig">Lars Wilhelmsen | Senior Consultant | <a href="http://www.miles.no/">Miles</a>, Norway | <a href="https://mvp.support.microsoft.com/profile/Lars">Connected Systems MVP</a> | <a href="http://larswilhelmsen.com/">http://larswilhelmsen.com/</a>Fri, 03 Jul 2009 21:09:04 Z2009-07-03T21:09:04Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#34f3312c-4f92-4ea4-ad58-5ed17c55cc24http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#34f3312c-4f92-4ea4-ad58-5ed17c55cc24Serge Calderarahttp://social.msdn.microsoft.com/Profile/en-US/?user=Serge%20Calderaratcp channel time out on connection poolstill did not real catch the MxConnection for tcp channel, does it means that it needs to be as small value as possible ?<br/><br/>How do you estimate the number of maxConnection then ? based on which factor ? my finger :-)<br/>I do not know in qdvqnce how many client conenction I will have on my seervice .<br/><br/>thnaks fo clarification<br/>serge<hr class="sig">Your experience is build from the one of othersFri, 03 Jul 2009 21:24:34 Z2009-07-03T21:24:34Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#809c2474-d350-466d-a584-075a2b49df36http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#809c2474-d350-466d-a584-075a2b49df36Steven Cheng - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Steven%20Cheng%20-%20MSFTtcp channel time out on connection poolHi Serge,<br/><br/>Regarding on the following article Lars refered:<br/><br/><a href="http://kennyw.com/indigo/181">http://kennyw.com/indigo/181</a><br/><br/>it explains that the &quot;MaxConnections&quot; limit actually means the max pooled connection instance(in the TCP connection pool).<br/><br/>As for how we should estimate and measure the max setting, I think you can consider the following things:<br/><br/>**how much is the throughput or concurrency requirement of your service? <br/><br/>**Will it frequently process large number of concurrent clients(connections) or just ocassionaly?<br/><br/>If the answer is frequently, it would be better to enlarge the MaxConnections(pool size) so that the connection establishing time will be greatly improved. Otherwise, you can keep it at low value since it ocassionaly handle large number of concurrent clients and does not need to keep many live connections in pool.<br/><br/><br/><br/><br/><br/><br/><hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help.Wed, 08 Jul 2009 10:24:43 Z2009-07-08T10:24:43Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#8122382e-af12-43ab-927b-ec8a09b91a5bhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#8122382e-af12-43ab-927b-ec8a09b91a5bSerge Calderarahttp://social.msdn.microsoft.com/Profile/en-US/?user=Serge%20Calderaratcp channel time out on connection poolDoes this maxConnection pool definition can cause a lack of memeory in case we set them to big ?<br/><hr class="sig">Your experience is build from the one of othersWed, 08 Jul 2009 12:54:15 Z2009-07-08T12:54:15Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#86649db1-e194-4b76-9821-e9017023e25fhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f61914bc-c2a9-465e-b05e-d2c50a88efc5#86649db1-e194-4b76-9821-e9017023e25fSerge Calderarahttp://social.msdn.microsoft.com/Profile/en-US/?user=Serge%20Calderaratcp channel time out on connection poolSo based on the link <a href="http://kennyw.com/indigo/181"><span style="color:#0033cc">http://kennyw.com/indigo/181</span></a> I understand it so that the mxConnection is the number of channel in the pool that we want to keep right ?<br/><br/>by not knowing this, for my application this value is set to 32 because I have though is was linked to max conenction to the service.<br/><br/>So base on my 32 setting, it means that event if I clos my channel after use, it weel keep at mach 32 live channel in meemory, is that corrcet ?<br/><br/>Does this count cause after a while a memory leak at client side ?<br/><br/>PS : note that all my services and client application runs on teh same machine wihich has 4gb Ram and Server 2008, so single sytsem ressource are used.<br/><br/>thnaks for help<br/>regards<br/>serge<hr class="sig">Your experience is build from the one of othersWed, 08 Jul 2009 13:11:26 Z2009-07-08T13:11:26Z