第 9 章 启用和配置数据网格统计信息和 JMX 监控

数据网格可以提供缓存管理器和缓存统计信息,以及导出 JMX MBean。

9.1. 在远程缓存中启用统计

Data Grid Server 会自动启用默认缓存管理器的统计信息。但是,您必须明确为缓存启用统计。

流程

  1. 打开 Data Grid 配置进行编辑。
  2. 添加 statistics 属性或字段,并将 true 指定为值。
  3. 保存并关闭您的数据网格配置。

远程缓存统计

XML

<distributed-cache statistics="true" />

JSON

{
  "distributed-cache": {
    "statistics": "true"
  }
}

YAML

distributedCache:
  statistics: true