<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dude where's my PFE? : TCP KeepAliveTime</title><link>http://blogs.technet.com/jeff_stokes/archive/tags/TCP+KeepAliveTime/default.aspx</link><description>Tags: TCP KeepAliveTime</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How to get rid of 9646 events</title><link>http://blogs.technet.com/jeff_stokes/archive/2008/11/25/how-to-get-rid-of-9646-events.aspx</link><pubDate>Tue, 25 Nov 2008 23:16:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3159459</guid><dc:creator>jeffstok</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/jeff_stokes/comments/3159459.aspx</comments><wfw:commentRss>http://blogs.technet.com/jeff_stokes/commentrss.aspx?PostID=3159459</wfw:commentRss><wfw:comment>http://blogs.technet.com/jeff_stokes/rsscomments.aspx?PostID=3159459</wfw:comment><description>&lt;P&gt;&lt;EM&gt;Applies to Exchange 2003&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Event Type: Error &lt;BR&gt;Event Source: MSExchangeIS &lt;BR&gt;Event Category: General &lt;BR&gt;Event ID: &lt;SPAN id=#h6 class=KeywordHighlight&gt;9646&lt;/SPAN&gt; &lt;BR&gt;Description: &lt;BR&gt;Mapi session "/o=&amp;lt;org&amp;gt;/ou=First Administrative &lt;BR&gt;Group/cn=Recipients/cn=&amp;lt;userName&amp;gt;" exceeded the maximum of 32 objects of type "session". &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Seen these in your environment?&amp;nbsp; Sometimes they are caused by desktop search engines opening too many MAPI sessions, other times they are because your Exchange server is keeping open connections from the client that the client for whatever reason thinks are closed.&lt;/P&gt;
&lt;P&gt;For example, say you have users connecting to Exchange over a poor network connection or VPN.&amp;nbsp; When Outlook connects, it establishes MAPI sessions.&amp;nbsp; If the users drops the VPN connection without closing Outlook first, those connections are going to stay open on the Exchange server for 2 hours.&amp;nbsp; If the user connects again, more connections get added to the Exchange server for that user.&amp;nbsp; See where we're going with this?&amp;nbsp; If you max out, new connections will fail, resulting in an unhappy end user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;So how do you fix this?&lt;/P&gt;
&lt;P&gt;Well, one of three ways.&lt;/P&gt;
&lt;P&gt;You can try to prevent your clients from doing so many connections by educating your users, making changes in Outlook 2007, correctly configuring Network Accelerators to not keep connections open, etc.&lt;/P&gt;
&lt;P&gt;You can tell Windows/Exchange that 2 hours is far too long to keep a session open without activity.&amp;nbsp; To do this you follow the instructions in this document, specifically the TCP KeepAliveTime, set that to 5 minutes.&lt;/P&gt;
&lt;P&gt;KB324270&amp;nbsp;How to harden the TCP/IP stack against denial of service attacks in Windows Server 2003.&lt;BR&gt;&lt;A href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;324270"&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;324270&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Or finally, and the last resort, you can add additional allowable sessions by following KB842022.&amp;nbsp; Note that this is a last resort, as in many cases you are merely delaying your pain for later.&amp;nbsp; Note the warning:&amp;nbsp; "If you do this, try to determine the minimum value that you can use so that the client program can run without problems. If you raise the limit too high, the client program might affect the performance of the Exchange Server computer."&lt;/P&gt;
&lt;P&gt;Event ID 9646 is logged in the application event log of your Exchange Server 2003 computer when a client opens many MAPI sessions.&lt;BR&gt;&lt;A href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;842022" mce_href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;842022"&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;842022&lt;/A&gt;.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3159459" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/jeff_stokes/archive/tags/Exchange+2003/default.aspx">Exchange 2003</category><category domain="http://blogs.technet.com/jeff_stokes/archive/tags/TCP+KeepAliveTime/default.aspx">TCP KeepAliveTime</category><category domain="http://blogs.technet.com/jeff_stokes/archive/tags/9646/default.aspx">9646</category><category domain="http://blogs.technet.com/jeff_stokes/archive/tags/MSExchangeIS/default.aspx">MSExchangeIS</category></item></channel></rss>