3.4. 受管执行器服务和受管调度执行器服务的运行时统计信息
您可以通过查看管理 CLI 属性生成的运行时统计信息,监控受管 executor 服务的性能和管理调度的执行者服务。您可以查看单机服务器的运行时统计信息,或者查看映射到主机的个别服务器的运行时统计信息。
domain.xml 配置不包括运行时统计管理 CLI 属性的资源,因此您无法使用管理 CLI 属性来查看受管域的运行时统计信息。
表 3.1. 显示用于监控受管执行器服务和托管调度执行器服务性能的管理 CLI 属性。
| 属性 | 描述 |
|---|---|
| active-thread-count | 主动执行任务的近似线程数量。 |
| completed-task-count | 已完成执行的任务约为总数。 |
| hung-thread-count | 挂起的 executor 线程数量。 |
| max-thread-count | 执行器线程的最大数量. |
| current-queue-size | executor 任务队列的当前大小。 |
| task-count | 已提交执行的任务的近似总数。 |
| thread-count | 执行器线程的当前数量。 |
查看在单机服务器上运行的受管 executor 服务的运行时统计信息示例:
[standalone@localhost:9990 /] /subsystem=ee/managed-executor-service=default:read-resource(include-runtime=true,recursive=true)
在单机服务器上运行的受管调度执行器服务的运行时统计数据示例。
[standalone@localhost:9990 /] /subsystem=ee/managed-scheduled-executor-service=default:read-resource(include-runtime=true,recursive=true)
查看在映射到主机的服务器上运行的受管 executor 服务的运行时统计信息示例:
[domain@localhost:9990 /] /host=<host_name>/server=<server_name>/subsystem=ee/managed-executor-service=default:read-resource(include-runtime=true,recursive=true)
在映射到主机的服务器上运行的受管计划执行器服务的运行时统计数据示例。
[domain@localhost:9990 /] /host=<host_name>/server=<server_name>/subsystem=ee/managed-scheduled-executor-service=default:read-resource(include-runtime=true,recursive=true)