![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
线程池计数器
您可以使用性能监控基础结构 (PMI) 和 Tivoli® Performance Viewer (TPV) 收集的线程池计数器来监视线程池活动。
计数器定义
名称 | 键 | 描述 | 详细程度 | 类型 | 级别 | 开销 | 标识 |
---|---|---|---|---|---|---|---|
CreateCount | threadPoolModule.threadCreates | 创建的线程的总数 | 每个线程池 | CountStatistic | 全部 | 低 | 1 |
DestroyCount | threadPoolModule.threadDestroys | 销毁的线程的总数 | 每个线程池 | CountStatistic | 全部 | 低 | 2 |
ActiveCount | threadPoolModule.activeThreads | 并发活动线程数 注: ActiveCount 值可以包含用于异步 I/O 的长时间运行线程的计数。在这些情况下,很可能即使线程池上没有明显活动,ActiveCount 值也将永远不会到达零。
|
每个线程池 | BoundedRangeStatistic | 扩展的 | 高 | 3 |
PoolSize | threadPoolModule.poolSize | 池中的平均线程数 | 每个线程池 | BoundedRangeStatistic | 基本 | 高 | 4 |
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 |