24.3. 监控服务器线程使用


检查线程利用率,以确保您已正确配置线程池的大小。

要检查线程使用率,请发出以下 CLI 命令:

/subsystem=messaging-activemq:read-resource(include-runtime)
Copy to Clipboard Toggle word wrap

系统返回的结果类似如下

{
    "outcome" => "success",
    "result" => {
        "global-client-scheduled-thread-pool-active-count" => 0,
        "global-client-scheduled-thread-pool-completed-task-count" => 0L,
        "global-client-scheduled-thread-pool-current-thread-count" => 0,
        "global-client-scheduled-thread-pool-keepalive-time" => 10000000L,
        "global-client-scheduled-thread-pool-largest-thread-count" => 0,
        "global-client-scheduled-thread-pool-max-size" => undefined,
        "global-client-scheduled-thread-pool-task-count" => 0L,
        "global-client-thread-pool-active-count" => 0,
        "global-client-thread-pool-completed-task-count" => 2L,
        "global-client-thread-pool-current-thread-count" => 2,
        "global-client-thread-pool-keepalive-time" => 60000000000L,
        "global-client-thread-pool-largest-thread-count" => 2,
        "global-client-thread-pool-max-size" => undefined,
        "global-client-thread-pool-task-count" => 2L,
        "connection-factory" => undefined,
        "connector" => undefined,
        "discovery-group" => undefined,
        "external-jms-queue" => undefined,
        "external-jms-topic" => undefined,
        "http-connector" => undefined,
        "in-vm-connector" => undefined,
        "jms-bridge" => undefined,
        "pooled-connection-factory" => undefined,
        "remote-connector" => undefined,
        "server" => {"default" => undefined}
    }
}
Copy to Clipboard Toggle word wrap
Expand
表 24.1. 线程利用率数据
使用率属性描述

global-client-scheduled-thread-pool-active-count

当前执行任务的所有 ActiveMQ 客户端所使用的调度池线程数量。

global-client-scheduled-thread-pool-completed-task-count

服务器引导以来,所有 ActiveMQ 客户端已执行的已调度池线程的任务数量。

global-client-scheduled-thread-pool-current-thread-count

调度池中当前供所有 Active MQ 客户端使用的线程数。

global-client-scheduled-thread-pool-keepalive-time

当空闲时,在调度线程池中保持线程运行的时间长度。

global-client-scheduled-thread-pool-largest-thread-count

已为所有 Active MQ 客户端同时使用的调度池中最多的线程数。

global-client-scheduled-thread-pool-max-size

调度池中供此服务器内运行的所有 ActiveMQ 客户端使用的最多线程数。

global-client-scheduled-thread-pool-task-count

已计划线程池中由所有 Active MQ 客户端调度的任务总数。

global-client-thread-pool-active-count

当前执行任务的所有 ActiveMQ 客户端使用的通用池线程数量。

global-client-thread-pool-completed-task-count

使用所有 ActiveMQ 客户端已执行的通用池线程的任务数量。

global-client-thread-pool-current-thread-count

通用池中当前供所有 Active MQ 客户端使用的线程数。

global-client-thread-pool-keepalive-time

当空闲时,在通用线程池中应保持运行的时间。

global-client-thread-pool-largest-thread-count

通用池中最大数量的线程,这些线程过去已由所有 Active MQ 客户端同时使用。

global-client-thread-pool-max-size

此服务器内运行的所有 ActiveMQ 客户端使用的通用池中的最大线程数。

global-client-thread-pool-task-count

所有 Active MQ 客户端调度的通用线程池中的任务总数。

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat