MAPISession(EventID9646-MS-ExchangeIS)

查看邮箱登录信息:

Get-LogonStatistics jsmith | Sort-Object clientipaddress | Format-Table

Get-LogonStatistics jsmith | Sort-Object sessionid | Format-Table sessionid,username,logontime


 

exchange 2007: Mapi session exceeded the maximum of 32 objects of type session

Error Message:

Mapi session “/o=Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=JohnSmith” exceeded the maximum of 32 objects of type “session”.

Source: MSExchangeIS

Event ID: 9646

On the client side, the user is unable to connect to Microsoft Exchange or getting this error:

Unable to open your default e-mail folders. The Microsoft Exchange Server computer is not available. Either there are network problems or the Microsoft Exchange Server is down for maintenance.

This usually happens when the user loses network connectivity while Outlook is still open. The Exchange server wasn’t able to close the sessions properly so they just stayed there even when they are not in use.

By default, Exchange only allows up to 32 MAPI (Outlook) sessions per user. To fix this problem, you must close some of the sessions.

What to do:

  1. Download and extract Sysinternals’ TCPView (free) on the Exchange server.
  2. Open the Exchange Management Shell and type in the following command to get a list of all the opened sessions. Make a note of the IP Addresses:
  3. Get-LogonStatistics jsmith | Sort-Object clientipaddress | Format-Table username,clientipaddress,logontime
  4. Open Tcpview.exe on the server. Sort it by Remote Address, then sort it by Process.

Look for the IP Addresses from Step 2 in the Remote Address column (if you only see hostnames, go to Options -> uncheck Resolve Addresses) and close their connections for the store.exe

 


最佳解決方法:

1迁移UserMailbox至其他服务器

2、迁移User的邮箱。

3、删除Outlook的Profile,重新配置Profile。

4、修改注册表

 

  附:修改注册表的方法,但是这样会增加服务器的负载,影响性能

 

  方法一、修改释放Mapi Session的默认时间

 

  方法二、修改MaxObjsPerMapiSession值,扩大32个Session的限制

 

 

5.  重启邮件服务器的information store服务

 


 

Exchange Server对每个用户能够建立的会话数量做了限制,在缺省情况下,每个用户能建立的最大mapi session 数量为32。这些mapi session是指从Outlook 客户端到Exchange 服务器之间的建立的会话,而且没有被服务器释放的。

 

导致连接没有断开的原因有多种,比如用户通过不稳定的网络如无线网络连接到Exchange服务器,这样可能会导致连接没有及时断开,也就是说网络不好的情况下,outlook会频繁向服务器请求会话,而前次的会话又没有正常结束。

 


 

 

在企业中,会有多人使用同一个exchange邮箱的情况,这些人在自己的机器上配置outlook客户端,使用MAPI协议连接到exchange 2010.

 

默认outlook MAPI方式连接exchange服务器,最大的session数为16个,超过16个用户同时使用一个exchange邮箱账号去连接exchange,就会出现一部分用户无法连接的情况。

 

具体可以参考官方的文章:

 

Exchange Store Limits: Exchange 2010 Help    

 

https://technet.microsoft.com/en-us/library/ff477612(v=exchg.141).aspx

 

在 MicrosoftExchange Server 2010 中,对 Exchange 存储施加了连接和使用限制,以防止单个应用程序或单个用户使用与 Exchange 存储之间的所有可用连接。如果允许单个用户或应用程序使用所有连接,则其他用户或应用程序将无法访问 Exchange 存储,这可能导致停机。

 

会话和线程的概念

 

  • 会话
  • 会话表示由服务和客户端应用程序(如 Microsoft Outlook)用于连接到 Exchange 存储的连接。服务和客户端可以在特定时间拥有多个会话。术语“连接”和“会话”可以互换使用。
  • 线程
  • 线程表示对 Exchange 存储并发执行的请求。例如,如果用户在 Outlook 中打开文件夹,则 Outlook 会代表用户对 Exchange 执行请求。执行的该请求为单个线程。
    例如,同时登录到一个服务器的 75 个用户相当于 75 个会话。但是,在这 75 个会话中,只有 5 个会话可以通过线程进行请求。

 

上面的文章中,给出了修改最大会话数的方式。

 

同时,我们也可以用一些行政的手段处理该问题,比如多个人使用一台共用计算机去登录该邮箱。


 

 

参考文档:

https://www.calazan.com/exchange-2007-mapi-session-exceeded-the-maximum-of-32-objects-of-type-session/

http://www.voidcn.com/blog/543925535/article/p-5060992.html

 

posted @ 2017-06-19 19:07  寻香径  阅读(498)  评论(0编辑  收藏  举报