统计分析
brokerStatus
作用:获取broker运行时的状态数据
命令: mqadmin brokerStatus [-b ] [-c ] [-h] [-n ]
参数 |
含义 |
备注 |
-h,–help |
打印help信息 |
|
-n,–namesrvAddr |
nameserver服务地址列表 |
|
-b,–brokerAddr |
broker地址 |
|
-c,–clusterName |
集群名称 |
|
示例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
[root@localhost-001 bin] RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0). RocketMQLog:WARN Please initialize the logger system properly. EndTransactionQueueSize : 0 EndTransactionThreadPoolQueueCapacity: 100000 bootTimestamp : 1600660736545 brokerVersion : 355 brokerVersionDesc : V4_7_1 commitLogDirCapacity : Total : 40.0 GiB, Free : 23.9 GiB. commitLogDiskRatio : 0.40273704594017096 commitLogMaxOffset : 5389336601 commitLogMinOffset : 5368709120 consumeQueueDiskRatio : 0.40273704594017096 dispatchBehindBytes : 0 dispatchMaxBuffer : 0 earliestMessageTimeStamp : 1600310170573 getFoundTps : 0.0 0.033330000333300004 0.046661689419795226 getMessageEntireTimeMax : 8 getMissTps : 17.998200179982 27.1639502716395 26.75381292662116 getTotalTps : 17.998200179982 27.1972802719728 26.800474616040955 getTransferedTps : 0.0 0.033330000333300004 0.046661689419795226 msgGetTotalTodayMorning : 2185 msgGetTotalTodayNow : 4046 msgGetTotalYesterdayMorning : 0 msgPutTotalTodayMorning : 2918 msgPutTotalTodayNow : 5357 msgPutTotalYesterdayMorning : 0 pageCacheLockTimeMills : 0 pullThreadPoolQueueCapacity : 100000 pullThreadPoolQueueHeadWaitTimeMills: 0 pullThreadPoolQueueSize : 0 putMessageAverageSize : 428.9402650737353 putMessageDistributeTime : [<=0ms]:3 [0~10ms]:1 [10~50ms]:0 [50~100ms]:0 [100~200ms]:0 [200~500ms]:0 [500ms~1s]:0 [1~2s]:0 [2~3s]:0 [3~4s]:0 [4~5s]:0 [5~10s]:0 [10s~]:0 putMessageEntireTimeMax : 10 putMessageSizeTotal : 2297833 putMessageTimesTotal : 5357 putTps : 0.0 0.06666000066660001 0.09498986774744028 queryThreadPoolQueueCapacity : 20000 queryThreadPoolQueueHeadWaitTimeMills: 0 queryThreadPoolQueueSize : 0 remainHowManyDataToFlush : 0 B remainTransientStoreBufferNumbs : 2147483647 runtime : [ 1 days, 5 hours, 32 minutes, 46 seconds ] ... ... [root@localhost-001 bin]` |
注意:使用-c会查处所有broker状态信息,包含所有主、从,使用-b只能指定一个broker查询
brokerConsumeStats
作用:获取消耗统计数据
命令:mqadmin brokerConsumeStats -b [-h] [-l ] [-n ] [-o ] [-t ]
参数 |
含义 |
备注 |
-h,–help |
打印help信息 |
|
-n,–namesrvAddr |
nameserver服务地址列表 |
|
-b,–brokerAddr |
broker地址 |
|
-l,–level |
threshold of print diff |
|
-o,–order |
order topic |
|
-t,–timeoutMillis |
请求超时时间 |
单位:毫秒 |
示例: