Presentation is loading. Please wait.

Presentation is loading. Please wait.

MSG 330 Exchange服务器性能调节技巧

Similar presentations


Presentation on theme: "MSG 330 Exchange服务器性能调节技巧"— Presentation transcript:

1 MSG 330 Exchange服务器性能调节技巧
11/28/2018 6:53 PM MSG 330 Exchange服务器性能调节技巧 吴峻 软件设计工程师组长 Exchange Server 微软有限公司 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

2 11/28/2018 6:53 PM © 2005 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

3 内容简介 从Exchange 2003服务器获取最佳性能的技巧 如何在Exchange服务器网络中获得更好的性能、可扩展性和可靠性
11/28/2018 6:53 PM 内容简介 从Exchange 2003服务器获取最佳性能的技巧 很多技巧同样适用于Exchange 2000服务器 如何在Exchange服务器网络中获得更好的性能、可扩展性和可靠性 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

4 11/28/2018 6:53 PM 性能 可靠性 可扩展性 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

5 存储性能 导致Exchange服务器性能问题的最大原因 Exchange对于磁盘输入/输出要求非常高 ! 注意 !
11/28/2018 6:53 PM 存储性能 导致Exchange服务器性能问题的最大原因 通常是磁盘轴数太少而无法满足要求 Exchange对于磁盘输入/输出要求非常高 合理的要求: 每100个用户邮件箱需要1个磁盘轴 ! 注意 ! 平均磁盘读写延迟大于20毫秒 磁盘延迟大于50毫秒并且持续数秒 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

6 存储性能(续) 可以采取的措施 了解你们的输入/输出要求, 采用高性能磁盘 考虑容量要求前,先考虑性能要求
11/28/2018 6:53 PM 存储性能(续) 可以采取的措施 了解你们的输入/输出要求, 采用高性能磁盘 用小容量多磁盘轴的硬盘 考虑容量要求前,先考虑性能要求 设置缓存控制为100%写缓存, 并且缓存页尺寸定为4 KB 考虑使用端到端的存储(比如Host Bus Adaptors) 使用DiskPar来排列磁盘道, 可能提高性能20% 使用工具JetStress来验证你们的存储结构 参阅"Optimizing Storage in Exchange 2003" © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

7 活动目录的快速访问 如果Exchange访问活动目录受到延迟, Exchange存储的性能会受到很大的影响而且邮件的传送会变慢
11/28/2018 6:53 PM 活动目录的快速访问 如果Exchange访问活动目录受到延迟, Exchange存储的性能会受到很大的影响而且邮件的传送会变慢 保证活动目录的访问(DSAccess)列表仅仅包含本地域控制器和全局目录服务器 使用了循环算法(round robin) 查询活动目录的往返时间应该小于10毫秒 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

8 活动目录的快速访问(续) 经验规则: 对应每四个Exchange服务器的处理器应该有一个全局目录处理器 调整DSAccess缓存
11/28/2018 6:53 PM 活动目录的快速访问(续) 经验规则: 对应每四个Exchange服务器的处理器应该有一个全局目录处理器 调整DSAccess缓存 减少MaxMemoryConfig到3MB 增加MaxMemoryUser到140MB /3GB设置应被用于全局目录处理器 把JET缓存从512 MB提高到1 GB 保证更多的活动目录信息在内存中得以缓存 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

9 用Exchange最佳实践分析工具来了解拓扑结构信息
11/28/2018 6:53 PM 用Exchange最佳实践分析工具来了解拓扑结构信息 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

10 正确使用/3GB开关设置 邮箱和公共文件夹服务器 全局目录服务器 前端和路由服务器 当硬件服务器有1 GB以上内存时使用
11/28/2018 6:53 PM 正确使用/3GB开关设置 邮箱和公共文件夹服务器 当硬件服务器有1 GB以上内存时使用 对于Windows 2003服务器使用 /USERVA=3030 全局目录服务器 前端和路由服务器 无论有多少内存都不建议使用 应该把内存用于系统的缓存 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

11 /3GB 和 /USERVA 切换 没有使用切换 User Mode Kernel Mode 11/28/2018 6:53 PM
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

12 /3GB 和 /USERVA 切换 /3GB User Mode User Mode User Mode Kernel Mode
11/28/2018 6:53 PM /3GB 和 /USERVA 切换 User Mode User Mode User Mode /3GB Kernel Mode © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

13 /3GB 和 /USERVA 切换 /3GB /USERVA=3030 User Mode User Mode User Mode
11/28/2018 6:53 PM /3GB 和 /USERVA 切换 User Mode User Mode User Mode Kernel Mode /3GB /USERVA=3030 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

14 HeapDeCommitFreeBlockThreshold
11/28/2018 6:53 PM HeapDeCommitFreeBlockThreshold 对于所有的Exchange服务器都应该设为 0x40000 通过把小的空闲内存合并为大的内存块来减少虚拟内存碎片 对于较大的Exchange邮件箱服务器尤其重要 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

15 HeapDeCommitFreeBlockThreshold
11/28/2018 6:53 PM HeapDeCommitFreeBlockThreshold 对于所有的Exchange服务器都应该设为 0x40000 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

16 HeapDeCommitFreeBlockThreshold
11/28/2018 6:53 PM HeapDeCommitFreeBlockThreshold 对于所有的Exchange服务器都应该设为 0x40000 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

17 HeapDeCommitFreeBlockThreshold
11/28/2018 6:53 PM HeapDeCommitFreeBlockThreshold 对于所有的Exchange服务器都应该设为 0x40000 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

18 HeapDeCommitFreeBlockThreshold
11/28/2018 6:53 PM HeapDeCommitFreeBlockThreshold 对于所有的Exchange服务器都应该设为 0x40000 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

19 物理地址扩展(/PAE)和/3GB 三种方法可以使用物理地址扩展 物理地址扩展(/PAE)允许: 访问4GB以上的地址
11/28/2018 6:53 PM 物理地址扩展(/PAE)和/3GB 物理地址扩展(/PAE)允许: 访问4GB以上的地址 硬件方法来保证数据执行保护(DEP) 三种方法可以使用物理地址扩展 在Boot.ini中加入/PAE切换 有Hot-add功能的Windows 2003服务器自动使用 在BIOS中使用数据执行保护(DEP) © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

20 物理地址扩展(/PAE)和/3GB(续) Exchange无法使用4 GB以上的地址空间, 但是可以从/3GB用户地址空间获益
11/28/2018 6:53 PM 物理地址扩展(/PAE)和/3GB(续) Exchange无法使用4 GB以上的地址空间, 但是可以从/3GB用户地址空间获益 物理地址扩展和/3GB切换同时使用会给Windows内核造成很大压力 谨慎调节内核的内存 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

21 使用超线程 在BIOS中设置 有时候缺省设置是关闭状态 使用时可以提高Exchange服务器的处理器效率达25%
11/28/2018 6:53 PM 使用超线程 在BIOS中设置 有时候缺省设置是关闭状态 使用时可以提高Exchange服务器的处理器效率达25% 同时适用于Windows 2003服务器和 Windows 2000服务器 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

22 部署Exchange 2003 Service Pack 1
11/28/2018 6:53 PM 部署Exchange 2003 Service Pack 1 输入/输出的模式改变, 可以减少30%输入/输出 极大地减少事务处理日志重放时间 从30秒减少到2秒钟 支持8处理器的超线程服务器 MaxDSNSize缺省设置为10 MB 可以检测并自动更正1位变址浮点错误 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

23 硬件设备的驱动程序 内存未分页的池和内存 页表(PTE)的效率 关闭不使用的硬件设备 在一台服务器中使用相同的硬件设备
11/28/2018 6:53 PM 硬件设备的驱动程序 ! 警惕信号 ! 空闲 PTE 数量小于 5000 内存未分页的池和内存 页表(PTE)的效率 关闭不使用的硬件设备 尤其要考虑网络适配器和存储硬件 在一台服务器中使用相同的硬件设备 多个设备可使用同一个驱动程序 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

24 硬件设备的驱动程序(续) 格外注意图形加速卡 需要更多的PTE? 可以导致PTE数量的大量减少 使用厂商提供的最新的驱动程序
11/28/2018 6:53 PM 硬件设备的驱动程序(续) 格外注意图形加速卡 可以导致PTE数量的大量减少 使用厂商提供的最新的驱动程序 使用VGA.SYS驱动程序 需要更多的PTE? 对于Exchange 2003服务器, 减少/USERVA 到2970 对于Exchange 2000服务器, 使用 SystemPages注册表项参数 (从分页池中盗取内存) © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

25 11/28/2018 6:53 PM TEMP转换 对于邮局协议(POP3), 消息访问协议 (IMAP4), 和专用的公共文件夹服务器, 把 TEMP路径指到一个专用的速度快的硬盘 单一服务器 = 系统的TEMP路径 服务器群集 = 群集帐户的TEMP路径 大于4 KB的邮件都通过硬盘上的临时文件来转换 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

26 调节防病毒程序 咨询你们的防病毒程序供应商, 在服务器上使用优化设置 保证使用最新的防病毒程序 避免以下的问题发生 扫描使用的线程数量
11/28/2018 6:53 PM 调节防病毒程序 咨询你们的防病毒程序供应商, 在服务器上使用优化设置 扫描使用的线程数量 内存/磁盘文件大小的阈值 保证使用最新的防病毒程序 避免以下的问题发生 虚拟内存的碎片太多 非分页池错误 服务失败 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

27 联机维护的计划 错开大的邮件箱服务器的联机维护时间, 保证各服务器的联机维护之间有15分钟以上的间隙
11/28/2018 6:53 PM 联机维护的计划 错开大的邮件箱服务器的联机维护时间, 保证各服务器的联机维护之间有15分钟以上的间隙 错开联机维护和联机备份, 不要使他们同时发生 如果同时发生, 联机备份可能会终止联机维护的线程 保证联机维护有运行的时间 不要关闭联机维护功能 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

28 调节事务日志缓冲区 Exchange 2003缺省设置为512字节的缓冲区
11/28/2018 6:53 PM 调节事务日志缓冲区 msExchESEParamLogBuffers Exchange 2003缺省设置为512字节的缓冲区 参考 如果磁盘的延迟合理, 但是日志的延迟比较高, 应该在活动目录中增加日志的大小 检查性能监视器中的Database\Log Record Stalls/sec 使用64的整数倍, 而且不超过9000 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

29 Exchange邮件箱服务器的存储缓存 Exchange存储读取邮件箱配置有两小时的缓存 使用邮件箱缓存时限的注册表项来减少等待时间
11/28/2018 6:53 PM Exchange邮件箱服务器的存储缓存 Exchange存储读取邮件箱配置有两小时的缓存 邮件箱的大小限制和阈值 使用邮件箱缓存时限的注册表项来减少等待时间 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

30 使用专门的Exchange路由服务器 管理等待队列中的邮件会消耗分页池中的内存并且会增加CPU的使用
11/28/2018 6:53 PM 使用专门的Exchange路由服务器 管理等待队列中的邮件会消耗分页池中的内存并且会增加CPU的使用 保证大的邮箱服务器能够迅速地转移邮件到专门的路由服务器 在路由服务器上, 把SMTP队列分配到专门的快速硬盘上 使用CheckConnectorRestrictions注册表项 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

31 减少链接状态表的大小 尽量避免创建或删除路由组 关注不稳定的连接 使用技术支持工具REMONITOR – 如果需要可以使过时的数据无效
11/28/2018 6:53 PM 减少链接状态表的大小 尽量避免创建或删除路由组 使用技术支持工具REMONITOR – 如果需要可以使过时的数据无效 关注不稳定的连接 使用SuppressStateChanges注册表项参数来防止服务器频繁地广播链接状态的改变 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

32 11/28/2018 6:53 PM 避免7位转化 成对使用Exchange 2003服务器做桥头服务器, 在Exchange 2003纯模式的组织里相互之间使用8位二进制MIME通过路由组连接器来传送数据 其他组合都会强制使用7位转换, 结果导致 30%额外数据在网络中传输 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

33 使用邮件大小限制 过大的邮件可以消耗Exchange服务器的大量资源 在全局设置中设置合理的限制
11/28/2018 6:53 PM 使用邮件大小限制 过大的邮件可以消耗Exchange服务器的大量资源 在全局设置中设置合理的限制 在接受邮件的桥头服务器仅设置SMTP服务中的限制 如果没有部署Exchange 2003 SP1, 使用 MaxDSNSize. © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

34 检查Internet协议栈的设置 关注DNS和Windows Internet Name Service (WINS)地址中的任何人为差错
11/28/2018 6:53 PM 检查Internet协议栈的设置 关注DNS和Windows Internet Name Service (WINS)地址中的任何人为差错 错误可导致在线广播 保证主DNS服务器始终在线 如果使用辅DNS服务器邮件传输效率下降可达30% © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

35 理解客户端的插件 很多Outlook加载插件会极大地增加服务器的负担
11/28/2018 6:53 PM 理解客户端的插件 很多Outlook加载插件会极大地增加服务器的负担 要重新计算每秒输入/输出 使用工具ExMon来监测用户 一些很有价值的服务, 比如Blackberry通常会要求Exchange存储调节 保证部署最新的Collaboration Data Objects (CDO) © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

36 Outlook功能 Outlook 2003 功能 Exchange Server 2003 Exchange 2000 Server
11/28/2018 6:53 PM Outlook功能 Outlook 2003 功能 Exchange Server 2003 Exchange 2000 Server Exchange Server 5.5 Cached Mode with Full Item Sync  X Cached Mode with Drizzle Sync  Cached Mode with Header Sync  Send/Receive Header Sync (header only, not full item) Send/Receive Conditional Full-Item Sync Improved Sync Progress (Item Counts and Sizes) Partial Item Upload Automatic Conflict Resolution ICS Check Pointing Skip Bad Item Best Body Support RPC Compression Buffer Packing RPC/HTTP Kerberos Authentication Performance Tracking LIFO: Last In, First Out Connection Throttling Unicode Support Integration With VS API 2.5 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

37 运行Exchange最佳实践分析工具来验证任何改变
11/28/2018 6:53 PM 运行Exchange最佳实践分析工具来验证任何改变 Exchange最佳实践分析工具(ExBPA)是设计来分析你们的服务器和拓扑结构, 并且提出相应的建议来获取最佳的性能、可扩展性和可靠性 MSG360会详细介绍 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

38 小结 合理的微小的设计改变也可能获得很大的好处 在调节时不要急于求成, 尤其是当涉及到注册表项的更改
11/28/2018 6:53 PM 小结 合理的微小的设计改变也可能获得很大的好处 在调节时不要急于求成, 尤其是当涉及到注册表项的更改 尽量使用Exchange最佳实践分析工具来验证合理性 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

39 资源 Exchange 工具下载 www.microsoft.com/exchange/downloads
11/28/2018 6:53 PM 资源 Exchange 工具下载 Exchange 最佳实践工具 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

40 11/28/2018 6:53 PM 您的反馈非常重要! 请填写调查表 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

41 11/28/2018 6:53 PM © 2005 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.


Download ppt "MSG 330 Exchange服务器性能调节技巧"

Similar presentations


Ads by Google