设为首页 收藏本站
查看: 2006|回复: 0

[经验分享] MAPISession(EventID9646-MS-ExchangeIS)

[复制链接]

尚未签到

发表于 2017-12-8 21:35:22 | 显示全部楼层 |阅读模式
  查看邮箱登录信息:

  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:

Mapisession “/o=Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=JohnSmith” exceeded the maximum of 32objects 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:

Unableto 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.

Thisusually 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.

Bydefault, 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:


  • Download and extract Sysinternals’ TCPView (free) on the Exchange server.
  • Openthe Exchange Management Shell and type in the following command to get alist of all the opened sessions. Make a note of the IP Addresses:
  • Get-LogonStatistics jsmith | Sort-Object clientipaddress | Format-Table username,clientipaddress,logontime
  • Open Tcpview.exe on the server. Sort it by Remote Address, then sort it by Process.
  Lookfor 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服务



ExchangeServer对每个用户能够建立的会话数量做了限制,在缺省情况下,每个用户能建立的最大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


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-422268-1-1.html 上篇帖子: rabbitmq的简单介绍二 下篇帖子: Spring集成RabbitMQ-必须知道的几个概念
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表