From 0eb07b444116f59f689a43281d99d7deace36bda Mon Sep 17 00:00:00 2001 From: Huxing Zhang Date: Thu, 20 Sep 2018 09:52:38 +0800 Subject: [PATCH] Polish README, add monitor command showcase. --- README.md | 21 +++++++++++++++++++++ README_CN.md | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/README.md b/README.md index 9a37cc115..7d2365cf2 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,27 @@ ts=2018-09-18 10:26:28;result=@ArrayList[ ] ``` +#### Monitor + +Monitor a specific method invoction statistics, including total number of invocations, avarage response time, success rate, every 5 seconds: + +``` +$ monitor -c 5 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello +Press Ctrl+C to abort. +Affect(class-cnt:1 , method-cnt:1) cost in 109 ms. + timestamp class method total success fail avg-rt(ms) fail-rate +---------------------------------------------------------------------------------------------------------------------------- + 2018-09-20 09:45:32 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 0.67 0.00% + + timestamp class method total success fail avg-rt(ms) fail-rate +---------------------------------------------------------------------------------------------------------------------------- + 2018-09-20 09:45:37 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 1.00 0.00% + + timestamp class method total success fail avg-rt(ms) fail-rate +---------------------------------------------------------------------------------------------------------------------------- + 2018-09-20 09:45:42 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 0.43 0.00% +``` + #### Classloader ``` diff --git a/README_CN.md b/README_CN.md index 767e1afd6..b47d25851 100644 --- a/README_CN.md +++ b/README_CN.md @@ -227,6 +227,28 @@ ts=2018-09-18 10:26:28;result=@ArrayList[ ] ``` +#### Monitor + +监控某个特殊方法的调用统计数据,包括总调用次数,平均rt,成功率等信息,每隔5秒输出一次。 + + +``` +$ monitor -c 5 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello +Press Ctrl+C to abort. +Affect(class-cnt:1 , method-cnt:1) cost in 109 ms. + timestamp class method total success fail avg-rt(ms) fail-rate +---------------------------------------------------------------------------------------------------------------------------- + 2018-09-20 09:45:32 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 0.67 0.00% + + timestamp class method total success fail avg-rt(ms) fail-rate +---------------------------------------------------------------------------------------------------------------------------- + 2018-09-20 09:45:37 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 1.00 0.00% + + timestamp class method total success fail avg-rt(ms) fail-rate +---------------------------------------------------------------------------------------------------------------------------- + 2018-09-20 09:45:42 org.apache.dubbo.demo.provider.DemoServiceImpl sayHello 5 5 0 0.43 0.00% +``` + #### Classloader 了解当前系统中有多少类加载器,以及每个加载器加载的类数量,帮助您判断是否有类加载器泄露。