当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] Exchange交易日志快速增长

作者:精品下载站 日期:2024-12-14 18:06:35 浏览:15 分类:玩电脑

Exchange交易日志快速增长


当 Exchange 数据库事务日志快速增长时,可能会出现不同的问题。这主要意味着以下问题之一存在问题:ActiveSync 连接、该数据库上的邮箱已损坏,或者数据库本身已损坏。在本文中,您将了解如何检查 ActiveSync 连接以及哪个用户的邮箱是罪魁祸首。

检查 Exchange 事务日志之前的先决条件

日志解析器2.2

下载 Log Parser 2.2 (Microsoft) 或此处(直接链接)。如果尚未安装,请将其安装在 Exchange Server 上。在继续下一步之前执行此操作。您还需要在同一台计算机上安装 Windows PowerShell 2.0,请注意,它默认安装在 Windows 7 和 Windows 2008 R2 计算机上。

ActiveSync报告

在 Exchange Server 上下载以下 ActiveSyncReport.ps1 PowerShell 脚本。在 C:\ 驱动器上创建一个名为 scripts 的文件夹。将 PowerShell 脚本放置在 C:\scripts\ 文件夹中。

[玩转系统] Exchange交易日志快速增长

检查为什么 Exchange 事务日志快速增长

使用脚本时有几个选项。我们将使用以下选项:

  • 点击量大于1000

  • 隔离一天

以管理员身份运行 Exchange 命令行管理程序。将目录更改为c:\scripts

[PS] C:\>cd C:\scripts\

[PS] C:\scripts>

点击量大于1000

以下命令将解析文件夹 W3SVC1 中的所有 IIS 日志,并且仅报告大于 1000 的用户和设备的点击数。如果将默认 IIS 文件夹路径放置在与默认路径不同的位置,请更改它。

[PS] C:\scripts>.\ActiveSyncReport.ps1 -IISLog "C:\inetpub\logs\LogFiles\W3SVC1" -LogparserExec "C:\Program Files (x86)\Log Parser 2.2\LogParser.exe" -ActiveSyncOutputFolder c:\EASReports -MinimumHits 1000
Building Log Parser Query...
Found time-taken in the IIS Log, adding this column.
Gathering Statistical data
Running Log Parser Command against the IIS Log(s): C:\inetpub\logs\LogFiles\W3SVC1\*.log

Statistics:
-----------
Elements processed: 5987096
Elements output:    1150
Execution time:     162.17 seconds (00:02:42.17)

Generating the Minimum Hits Report.
Building Log Parser Query...
Running Log Parser Command against the CSV results to determine Minimum hits of 1000

Statistics:
-----------
Elements processed: 1150
Elements output:    428
Execution time:     0.02 seconds

LogParser Command finished CSV, File location: c:\EASReports\EASyncOutputReport-Multiple_Files_Minimum_Hits_of_1000.csv

隔离单日点击量

以下命令将仅解析文件夹 W3SVC1 中与日期 24-12-2019 匹配的文件,并且仅报告大于 1000 的点击数。如果将默认 IIS 文件夹路径放置在与默认路径不同的位置,请更改它。

[PS] C:\scripts>.\ActiveSyncReport.ps1 -IISLog "C:\inetpub\logs\LogFiles\W3SVC1" -LogparserExec "C:\Program Files (x86)\Log Parser 2.2\LogParser.exe" -ActiveSyncOutputFolder c:\EASReports -MinimumHits 1000 -Date 24-12-2019
Trying to find IIS logs from this date:
Building Log Parser Query...
Found time-taken in the IIS Log, adding this column.
Gathering Statistical data
Running Log Parser Command against the IIS Log(s): C:\inetpub\logs\LogFiles\W3SVC1\*191224*.log

Statistics:
-----------
Elements processed: 595963
Elements output:    662
Execution time:     16.92 seconds

Generating the Minimum Hits Report.
Building Log Parser Query...
Running Log Parser Command against the CSV results to determine Minimum hits of 1000

Statistics:
-----------
Elements processed: 662
Elements output:    81
Execution time:     0.03 seconds

LogParser Command finished CSV, File location: c:\EASReports\EASyncOutputReport-24-12-2019_Minimum_Hits_of_1000.csv

导出完成后,转到输出文件夹C:\EASReports。您将找到四个 CSV 文件。

[玩转系统] Exchange交易日志快速增长

分析 Exchange 事务日志快速增长的原因

我们对多个文件最低点击次数为 10002019 年 12 月 24 日最低点击次数为 1000 感兴趣。

通常,如果设备每天发送超过 1000 个请求,则被视为高使用率。如果点击次数(请求)高于 1500,则设备或环境可能存在问题。

[玩转系统] Exchange交易日志快速增长

可以看到多个用户的点击量都超过了1500次。

删除用户设备上的 Outlook 配置,并在几天后重新运行 ActiveSync 脚本。您将看到数据库事务日志文件不再快速增长。

如果您确认数据库事务日志文件不再快速增长,请在用户设备上配置 Outlook 配置文件。请务必密切关注并在接下来的几天重新运行 ActiveSync 脚本。

继续阅读:Mail.que 文件在 Exchange Server 中不断增长 »

结论

您了解了为什么 Exchange 数据库事务日志快速增长。记住检查 ActiveSync 连接总是好的。拥有如此出色的脚本和登录导出功能,您可以找到数据库事务日志文件快速增长的原因并解决问题。

你喜欢这篇文章吗?您可能还喜欢删除已完成的移动请求 Exchange。不要忘记关注我们并分享这篇文章。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯