j2ee绿洲

找到属于自己的一片天空
数据加载中……
metamorphosis-11-监控命令
 metamorphosis 是通过jmx原理实现的监控,重载配置等服务.所以需要对metaq监控就有两个条件必须满足:
        1  使用metamorphosis-server-wrapper
        2  metaq的java启动参数中必须开启jmx的相关参数(-Dcom.sun.management.jmxremote )
        才能使用metaServer.sh命令监控
stats命令
不加任何参数,展示metaq的整个程序的相关参数.
./metaServer.sh stats
结果
STATS
pid 16585
broker_id 1002
port 8123
uptime 691558
version 1.4.3
slave false
curr_connections 3
threads 134
cmd_put 1142
cmd_get 437188
cmd_offset 0
tx_begin 0
tx_xa_begin 0
tx_commit 0
tx_rollback 0
get_miss 437123
put_failed 0
total_messages 3192
topics 14
config_checksum 3605506033
END

-item参数  brokers
./metaServer.sh stats -item brokers
结果
STATS
brokers
resultCode 1
partitions 0
message_count 0
bytes 0
topic_realtime_put Invalid keyTwo:brokers
topic_realtime_get Invalid keyTwo:brokers
topic_realtime_offset null
topic_realtime_get_miss Invalid keyTwo:brokers
topic_realtime_put_failed null
topic_realtime_message_size Invalid keyTwo:brokers
END
 topics
./metaServer.sh stats -item
执行结果
STATS
category partitions 1 message_count 28 accept_publish true accept_subscribe true
metatest2 partitions 1 message_count 1000 accept_publish true accept_subscribe true
test partitions 1 message_count 31 accept_publish true accept_subscribe true
metatest partitions 1 message_count 1058 accept_publish true accept_subscribe true
user_fav partitions 1 message_count 3 accept_publish true accept_subscribe true
product partitions 1 message_count 3 accept_publish true accept_subscribe true
listen_queue partitions 1 message_count 15 accept_publish true accept_subscribe true
listen_queue_confirm partitions 1 message_count 1048 accept_publish true accept_subscribe true
user_remind partitions 1 message_count 7 accept_publish true accept_subscribe true
cart *Empty*
listen_queue_success *Empty*
order *Empty*
user_changePass *Empty*
user_reg *Empty*
END
topic名称(比如:test)
./metaServer.sh stats -item test
执行结果
STATS
test
resultCode 0
partitions 1
message_count 31
bytes 3855
topic_realtime_put Count=0,Value=0,Value/Count=invalid,Count/Duration=0,Duration=1251
topic_realtime_get Count=0,Value=0,Value/Count=invalid,Count/Duration=0,Duration=1251
topic_realtime_offset null
topic_realtime_get_miss Count=0,Value=0,Value/Count=invalid,Count/Duration=0,Duration=1251
topic_realtime_put_failed null
topic_realtime_message_size Count=0,Value=0,Value/Count=invalid,Count/Duration=0,Duration=1251
END












posted on 2012-12-12 10:17 心情经纬 阅读(651) 评论(0)  编辑  收藏 所属分类: 消息队列专题


只有注册用户登录后才能发表评论。


网站导航: