首页  

dubbo telnet 命令使用     所属分类 dubbo 浏览量 1073
http://dubbo.apache.org/zh-cn/docs/user/references/telnet.html

2.0.5 版本开始,支持通过 telnet 命令进行服务治理

telnet localhost 20880


telnet 127.0.0.1 20882
连接上 敲回车 出现 dubbo命令行提示符



dubbo>ls dyyx.intf.AllInOneService dubbo>invoke dyyx.intf.AllInOneService.echo("hello") "hello@10.57.31.22_589992" elapsed: 1 ms. trace dyyx.intf.AllInOneService 跟踪方法 ,显示参数和返回值 ,json 格式 dubbo>status -l +------------+--------+--------------------------------------------------------+ | resource | status | message | +------------+--------+--------------------------------------------------------+ | threadpool | OK | Pool status:OK, max:10, core:10, largest:10, active:1, task:93, service port: 20882 | | load | OK | load:0.1,cpu:32 | | memory | OK | max:27305M,total:2077M,used:910M,free:1167M | | server | OK | /10.57.31.22:20882(clients:4) | | registry | OK | 127.0.0.1:6001(connected) | | spring | OK | classpath:spring/dubbo-provider.xml | | summary | OK | | +------------+--------+--------------------------------------------------------+ 线程池信息 连接数 status命令处理类 com.alibaba.dubbo.remoting.telnet.support.command.StatusTelnetHandler
ls ls: 显示服务列表 ls -l: 显示服务详细信息列表 ls XxxService: 显示服务的方法列表 ls -l XxxService: 显示服务的方法详细信息列表
ps ps: 显示服务端口列表 ps -l: 显示服务地址列表 ps 20880: 显示端口上的连接信息 ps -l 20880: 显示端口上的连接详细信息
cd cd XxxService: 改变缺省服务,当设置了缺省服务,凡是需要输入服务名作为参数的命令,都可以省略服务参数 cd /: 取消缺省服务 pwd pwd: 显示当前缺省服务
trace trace XxxService: 跟踪 1 次服务任意方法的调用情况 trace XxxService 10: 跟踪 10 次服务任意方法的调用情况 trace XxxService xxxMethod: 跟踪 1 次服务方法的调用情况 trace XxxService xxxMethod 10: 跟踪 10 次服务方法的调用情况
count count XxxService: 统计 1 次服务任意方法的调用情况 count XxxService 10: 统计 10 次服务任意方法的调用情况 count XxxService xxxMethod: 统计 1 次服务方法的调用情况 count XxxService xxxMethod 10: 统计 10 次服务方法的调用情况
invoke invoke XxxService.xxxMethod(1234, "abcd", {"prop" : "value"}) invoke xxxMethod({"name":"tiger","age":7,"class":"dyyx.Person"}) 当有参数重载,或者类型转换失败时,可以指定class status 显示汇总状态 当全部 OK 时则显示 OK,只要有一个 ERROR 则显示 ERROR,只要有一个 WARN 则显示 WARN status -l 显示状态列表 log debug 修改 dubbo logger 的日志级别 log 100 查看 file logger 的最后 100 字符的日志 help xxx 显示xxx命令的详细帮助信息 clear 清除屏幕上的内容 exit 退出当前 telnet 命令行 shutdown 关闭应用 shutdown -t 1000 延迟 1000 毫秒关闭 应用
dubbo性能相关参数 dubbo实例

上一篇     下一篇
dubbo服务调用流程

zookeeper JMX数据解析

dubbo调用失败问题排查

时间管理大师的5大技巧

Java 正则表达式

Elasticsearch实用监控指标TOP10