第四十六章 使用 ^SystemPerformance 监视性能 - 生成 ^SystemPerformance 性能报告

简介: 第四十六章 使用 ^SystemPerformance 监视性能 - 生成 ^SystemPerformance 性能报告

第四十六章 使用 ^SystemPerformance 监视性能 - 生成 ^SystemPerformance 性能报告

生成 ^SystemPerformance 性能报告

^SystemPerformance 实用程序根据 ^SystemPerformance 实用程序生成的日志文件自动生成完整(完整)可读的 HTML 性能报告。还可以使用 Preview^SystemPerformance 入口点,使用在运行 ^SystemPerformance 实用程序时选择的配置文件收集的数据生成临时(不完整)报告。

生成的报告文件位于输出目录中,默认情况下为 IRIS 实例的 install-dir\mgr 目录。这些文件由名称唯一标识,格式如下:hostname_instance_runid.html,其中 hostname 是运行 IRIS 实例的系统的主机名; instance 是已收集性能数据的实例的名称; runid 是运行 ^SystemPerformance 实用程序时生成的唯一标识符。如果报告是中期报告,_Pn 附加到文件名,其中 P 标识它是初步报告,n 是初步报告的编号。

使用任务管理器安排 ^SystemPerformance 实用程序

本节提供了使用管理门户中的任务管理器(系统操作 > 任务管理器)来安排 ^SystemPerformance 运行的示例。有关如何安排任务的一般说明,请参阅系统管理指南的“管理 InterSystems IRIS”一章的安排任务管理器中描述的过程。

注意:示例仅描述了必填字段。可以根据需要编辑其他字段。

示例 1:每周 24 小时运行。

在此示例中,创建了一个任务来安排 ^SystemPerformance 实用程序在每周四的 09:00 运行名为 24hours 的配置文件(收集 24 小时的性能数据):

  1. 从管理门户的任务管理器页面(系统操作 > 任务管理器),选择新建任务选项以启动任务计划程序向导。然后在指定字段中输入以下信息:
  • Task name — 输入 24HourRun
  • Description — 输入 Start 24-hour ^SystemPerformance Run
  • Namespace to run task in — 从下拉列表中选择 %SYS
  • Task type — 从下拉列表中选择 RunLegacyTask

ExecuteCode 文本框中,输入以下代码:

do run^SystemPerformance("24hours")
  • Output file — 留下空白;该任务没有输出(有关自定义^SystemPerformance输出目录的信息,请参见更改输出目录)。
  1. 点击下一步。然后在指定字段中输入以下信息:
  • How often … — 从下拉列表中选择每周。

选中星期四复选框。

  • Start Date — 在文本框中输入开始日期。

单击此时运行一次:并在文本框中输入 09:00:00

  1. 单击完成。

示例 2:每天运行2分钟

在此示例中,创建了一个任务来安排 ^SystemPerformance 实用程序在每天 12:00 运行名为 2mins 的配置文件(收集两分钟的性能数据):

  1. 从管理门户的任务管理器页面(系统操作 > 任务管理器),选择新建任务选项以启动任务计划程序向导。然后在指定字段中输入以下信息:
  • Task name — 输入 2MinRun
  • Description — 输入 Start 2-minute ^SystemPerformance Run
  • Namespace to run task in — 从下拉列表中选择 %SYS
  • Task type — 从下拉列表中选择 RunLegacyTask

ExecuteCode 文本框中,输入以下代码:

do run^SystemPerformance("2mins")
  • Output file — 留着空白;该任务没有输出(有关自定义 ^SystemPerformance 输出目录的信息,请参阅更改输出目录)。
  1. 点击下一步。然后在指定字段中输入以下信息:
  • How often … — 从下拉列表中选择每日。
  • Start Date — 在文本框中输入开始日期。

单击此时运行一次:并在文本框中输入 12:00:00

  1. 单击完成。

相关文章
|
30天前
|
缓存 监控
第四十三章 使用^TRACE跟踪进程性能
第四十三章 使用^TRACE跟踪进程性能
26 0
|
30天前
|
API
第四十七章 使用 ^SystemPerformance 监视性能 - 自定义 ^SystemPerformance 实用程序
第四十七章 使用 ^SystemPerformance 监视性能 - 自定义 ^SystemPerformance 实用程序
23 0
|
30天前
|
API
第四十八章 使用 ^SystemPerformance 监视性能 - 生成配置文件
第四十八章 使用 ^SystemPerformance 监视性能 - 生成配置文件
22 0
|
30天前
|
缓存 监控 调度
第六十一章 使用 ^PERFSAMPLE 监控进程 - 分析维度
第六十一章 使用 ^PERFSAMPLE 监控进程 - 分析维度
24 0
|
30天前
第四十五章 使用 ^SystemPerformance 监视性能 - Abort ^SystemPerformance
第四十五章 使用 ^SystemPerformance 监视性能 - Abort ^SystemPerformance
24 0
|
30天前
|
API
第四十九章 使用 ^SystemPerformance 监视性能 - 复制配置文件
第四十九章 使用 ^SystemPerformance 监视性能 - 复制配置文件
25 0
|
30天前
|
消息中间件 Linux 数据库
第五十三章 使用 ^SystemPerformance 监视性能 - InterSystems IRIS Linux 平台性能数据报告
第五十三章 使用 ^SystemPerformance 监视性能 - InterSystems IRIS Linux 平台性能数据报告
26 0
|
30天前
第三十二章 使用 ^GLOSTAT 收集GLOABL统计数据 - 输出^GLOSTAT
第三十二章 使用 ^GLOSTAT 收集GLOABL统计数据 - 输出^GLOSTAT
24 0
|
30天前
|
监控
第五十四章 使用 ^mgstat 监控性能
第五十四章 使用 ^mgstat 监控性能
26 0
|
30天前
|
缓存 监控 数据库
第五十五章 使用 ^mgstat 监控性能 - Seizes、ASeizes 和 NSeizes
第五十五章 使用 ^mgstat 监控性能 - Seizes、ASeizes 和 NSeizes
20 0