【问题标题】:Monitor Cassandra active connection using JMXMeter使用 JMXMeter 监控 Cassandra 活动连接
【发布时间】:2013-05-28 03:59:12
【问题描述】:

我正在尝试使用 JMXMeter 来监控 Cassandra 活动连接;但是根据文档,当我运行时,它应该得到如下结果

$>info
#mbean = org.apache.cassandra.db:type=Commitlog
#class name = org.apache.cassandra.db.commitlog.
PeriodicCommitLogExecutorService
# attributes
%0 - ActiveCount (int, r)
%1 - CompletedTasks (long, r)
%2 - PendingTasks (long, r)
#there’s no operations
#there’s no notifications

但是我得到如下

$>info
#mbean = org.apache.cassandra.db:type=Commitlog
#class name = org.apache.cassandra.db.commitlog.CommitLog
# attributes
  %0   - ActiveSegmentNames (java.util.List, r)
  %1   - ArchivingSegmentNames (java.util.List, r)
  %2   - CompletedTasks (long, r)
  %3   - PendingTasks (long, r)
  %4   - TotalCommitlogSize (long, r)
# operations
  %0   - void recover(java.lang.String p1)
#there's no notifications

如您所见;我没有获得 ActiveCount() 属性,而是获得了 ActiveSegmentNames () 和 ArchivingSegmentNames()。我正在寻找监视活动连接的属性。

我正在使用 apache-cassandra-1.2.3。

请帮忙。

谢谢, 迪利普

【问题讨论】:

    标签: cassandra


    【解决方案1】:

    您可以通过仅获取列表大小来从名称列表中获取计数,但 Commitlog 段计数从未与连接数相关。为此,您需要向操作系统询问有关 Thrift(或本机协议)端口上的 TCP 连接。

    【讨论】:

      猜你喜欢
      • 2013-05-06
      • 2012-02-07
      • 2021-07-02
      • 2012-09-16
      • 1970-01-01
      • 2018-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多