推荐公众号
连接dubbo服务-telnet
telnet ip port
示例
telnet 10.170 .13 .125 30001
Trying 10.170 .13 .125 . . .
Connected to 10.170 .13 .125 .
Escape character is '^]' .
展示服务列表-ls
ls
com. *. *. *. *. TestService
com. *. *. *. *. TestBService
dubbo>
ls - l
com. *. *. *. *. TestService - > dubbo: / / 10.170 .7 .35 : 30001 / com. *. *. *. *. TestService? anyhost= true & application= test_local& default . service. filter= thread_pool_status_checker& default . timeout= 50000 & dubbo= 2.4 .9 & interface = com. *. *. *. *. TestService& methods= findName, findUser& pid= 167 & pln= test- api& retries= 1 & revision= 2.0 .1 & side= provider& timestamp= 1614739529176 & version= 2.0 .1
调用服务-invoke
invoke com. test. dubbo. xxxxService. findDatas ( 1 , null, "2017-12-14 00:00:00" , null, null, null)
示例
invoke com. *. *. *. *. TestService. findName ( 666812496 )
test- name
10 ms
复杂参数
invoke com. xxx. xxx. xxx. TestService. findName ( { serialVersionUID : '' , name: '2019' , status: '4' , nicks: [ 'SSS110' ] } )
public class TestParams implements Serializable {
private static final long serialVersionUID = 4029832637715247990 L;
private String name;
private int status;
private List< String> nicks;
}
整个类的入参用大括号括起来
基本数据类型入参,用单引号括起来
List类型入参,用中括号括起来,list中传入多个值,用逗号分隔
方法传入多个入参,用逗号分隔
显示状态列表-status
threadpool 展示线程池信息
dubbo> status - l
+ -- -- -- -- -- -- + -- -- -- -- + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
| resource | status | message |
+ -- -- -- -- -- -- + -- -- -- -- + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
| threadpool | OK | Pool status: OK, max: 200 , core: 200 , largest: 200 , active: 3 , task: 14114 , service port: 30001 |
| datasource | OK | dataSourcejdbc: mysql: / / test. mysql. com: 3306 / test? useUnicode= true & characterEncoding= utf- 8 & autoReconnect= true ( MySQL- 5.6 .16 - log) |
| load | WARN | load: 2.38 , cpu: 2 |
| memory | OK | max: 1799 M, total: 741 M, used: 301 M, free: 440 M |
| server | OK | / 10.170 .13 .125 : 30001 ( clients: 58 ) |
| registry | OK | zoo1. superboss. cc: 30002 ( connected) |
| spring | OK | classpath* : / spring/ test- api/ spring- * . xml |
| summary | WARN | load |
+ -- -- -- -- -- -- + -- -- -- -- + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +