[AIX Solaris HP-UX Linux Windows][IBM i]

线程池计数器

可以使用性能监视基础结构 (PMI) 和 Tivoli ® Performance Viewer (TPV) 收集的线程池计数器来监视线程池活动。

计数器定义

表 1. 计数器定义 下表描述线程池计数器。
名称 密钥 描述 详细程度 类型 级别 开销 标识
CreateCount threadPoolModule.threadCreates 创建的线程的总数 每个线程池 CountStatistic 全部 1
DestroyCount threadPoolModule.threadDestroys 销毁的线程的总数 每个线程池 CountStatistic 全部 2
ActiveCount threadPoolModule.activeThreads 并发活动线程数
注: ActiveCount 值可以包含用于异步 I/O 的长时间运行的线程的计数。 在这些情况下,即使线程池上没有明显的活动, ActiveCount 值也可能永远不会达到零
每个线程池 BoundedRangeStatistic 已扩展 3
PoolSize threadPoolModule.poolSize 池中的平均线程数 每个线程池 BoundedRangeStatistic Basic 4
PercentUsed threadPoolModule.percentUsed 正在使用的池的平均百分比。 该值基于 ThreadPool 中已配置的线程总数,而不是当前池大小。 每个线程池 BoundedRangeStatistic 全部 10
PercentMaxed threadPoolModule.percentMaxed 正在使用的所有线程的平均时间百分比 每个线程池 BoundedRangeStatistic 全部 5
DeclaredthreadHungCount threadPoolModule.declaredThreadHung 声明挂起的线程数 每个线程池 CountStatistic 全部 最大数目 6
ClearedThreadHangCount threadPoolModule.declaredThreadHangCleared 清除的线程挂起数 每个线程池 CountStatistic 全部 最大数目 7
ConcurrentHungThreadCount threadPoolModule.concurrentlyHungThreads 并发挂起的线程数 每个线程池 BoundedRangeStatistic 全部 最大数目 8
ActiveTime threadPoolModule.activeTime 在活动状态的线程平均时间(以毫秒计)
注: 将在清除挂起的线程 (这些线程已完成其处理) 时更新 ActiveTime 。
每个线程池 TimeStatistic 全部 最大数目 9