深入解析中间件之-Dubbo

Alibaba Dubbo

QuickStart

在IDEA中运行Dubbo的快速入门:

  1. 不需要编译源码,不需要安装监控中心(dubbo-monitor)和管理中心(dubbo-admin)
  2. 安装并启动ZooKeeper,使用ZK作为Dubbo的注册中心
  3. 创建dubbo-demo项目,包含三个模块:api、prodvider、consumer
  4. 修改provider模块和consumer模块的注册方式使用ZooKeeper:zookeeper://127.0.0.1:2181
  5. IDEA中启动provider模块的Provider
  6. IDEA中启动consumer模块的Consumer

Provider启动后会一直运行,日志如下:

1
2
3
4
5
6
[20/10/17 09:29:07:007 CST] main  INFO zookeeper.ZookeeperRegistry:  [DUBBO] Register: dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 09:29:07:007 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 09:29:07:007 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, urls: [empty://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325], dubbo version: 2.5.6, current host: 127.0.0.1
[09:30:47] Hello world, request from consumer: /10.57.241.44:54685
[20/10/17 09:30:47:047 CST] New I/O server worker #1-1 WARN transport.AbstractServer: [DUBBO] All clients has discontected from /10.57.241.44:20880. You can graceful shutdown now., dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 09:30:47:047 CST] DubboServerHandler-10.57.241.44:20880-thread-3 INFO dubbo.DubboProtocol: [DUBBO] disconected from /10.57.241.44:54685,url:dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&channel.readonly.sent=true&codec=dubbo&dubbo=2.5.6&generic=false&heartbeat=60000&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1

Consumer启动后,运行完成,终端就关闭,表示一次RPC调用完成,日志如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[20/10/17 09:30:45:045 CST] main  INFO zookeeper.ZookeeperRegistry:  [DUBBO] Register: consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=consumers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:46:046 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=providers,configurators,routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:46:046 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=providers,configurators,routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694, urls: [dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, empty://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=configurators&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694, empty://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:46:046 CST] main INFO transport.AbstractClient: [DUBBO] Successed connect to server /10.57.241.44:20880 from NettyClient 10.57.241.44 using dubbo version 2.5.6, channel is NettyChannel [channel=[id: 0x0f2ff811, /10.57.241.44:54685 => /10.57.241.44:20880]], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:46:046 CST] main INFO transport.AbstractClient: [DUBBO] Start NettyClient zqhmac/10.57.241.44 connect to the server /10.57.241.44:20880, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:46:046 CST] main INFO config.AbstractConfig: [DUBBO] Refer dubbo service com.alibaba.dubbo.demo.DemoService from url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=demo-consumer&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&remote.timestamp=1508462946325&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44
Hello world, response form provider: 10.57.241.44:20880

[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO config.AbstractConfig: [DUBBO] Run shutdown hook now., dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=demo-consumer&dubbo=2.5.6&interface=com.alibaba.dubbo.registry.RegistryService&pid=4324&timestamp=1508463045739], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy registry:zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=demo-consumer&dubbo=2.5.6&interface=com.alibaba.dubbo.registry.RegistryService&pid=4324&timestamp=1508463045739, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy unregister url consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=consumers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy unsubscribe url consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=providers,configurators,routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] ZkClient-EventThread-12-127.0.0.1:2181 INFO zkclient.ZkEventThread: Terminate ZkClient event thread.
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO zookeeper.ZooKeeper: Session: 0x15f376495000001 closed
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO dubbo.DubboProtocol: [DUBBO] Close dubbo connect: /10.57.241.44:54685-->/10.57.241.44:20880, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO netty.NettyChannel: [DUBBO] Close netty channel [id: 0x0f2ff811, /10.57.241.44:54685 => /10.57.241.44:20880], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] main-EventThread INFO zookeeper.ClientCnxn: EventThread shut down for session: 0x15f376495000001
[20/10/17 09:30:47:047 CST] DubboSharedHandler-thread-1 INFO dubbo.DubboProtocol: [DUBBO] disconected from /10.57.241.44:20880,url:dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-consumer&check=false&codec=dubbo&dubbo=2.5.6&generic=false&heartbeat=60000&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&remote.timestamp=1508462946325&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO dubbo.DubboProtocol: [DUBBO] Close dubbo connect: 10.57.241.44:0-->10.57.241.44:20880, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:30:47:047 CST] DubboShutdownHook INFO dubbo.DubboProtocol: [DUBBO] Destroy reference: dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-consumer&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4324&remote.timestamp=1508462946325&side=consumer&timestamp=1508463045694, dubbo version: 2.5.6, current host: 10.57.241.44

Process finished with exit code 0

provider和consumer的注册中心配置都是ZooKeeper,查看ZooKeeper的节点信息。
可以看出DemoService的providers目前有dubbo://10.57.241.44:20880

1
2
3
4
[zk: localhost:2181(CONNECTED) 12] ls /dubbo/com.alibaba.dubbo.demo.DemoService
[consumers, configurators, routers, providers]
[zk: localhost:2181(CONNECTED) 13] ls /dubbo/com.alibaba.dubbo.demo.DemoService/providers
[dubbo%3A%2F%2F10.57.241.44%3A20880%2Fcom.alibaba.dubbo.demo.DemoService%3Fanyhost%3Dtrue%26application%3Ddemo-provider%26dubbo%3D2.5.6%26generic%3Dfalse%26interface%3Dcom.alibaba.dubbo.demo.DemoService%26methods%3DsayHello%26pid%3D4308%26side%3Dprovider%26timestamp%3D1508462946325]

provider提供了服务:dubbo:service,consumer引用服务:dubbo:reference
除此之外,provider在启动后,只要没有停止,就需要一直暴露dubbo协议:dubbo:protocol

provider.xml:

1
2
3
4
5
6
7
8
<beans>
<dubbo:application name="demo-provider"/>
<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<dubbo:protocol name="dubbo" port="20880"/> <!-- 用dubbo协议在20880端口暴露服务 -->

<bean id="demoService" class="com.alibaba.dubbo.demo.provider.DemoServiceImpl"/>
<dubbo:service interface="com.alibaba.dubbo.demo.DemoService" ref="demoService"/>
</beans>

consumer.xml:

1
2
3
4
5
<beans>
<dubbo:application name="demo-consumer"/>
<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<dubbo:reference id="demoService" check="false" interface="com.alibaba.dubbo.demo.DemoService"/>
</beans>

为了模拟provider的负载均衡,我们再启动一个provider,并且更改协议端口为20881。再次查看ZK:

1
2
3
[zk: localhost:2181(CONNECTED) 20] ls /dubbo/com.alibaba.dubbo.demo.DemoService/providers
[dubbo%3A%2F%2F10.57.241.44%3A20881%2Fcom.alibaba.dubbo.demo.DemoService%3Fanyhost%3Dtrue%26application%3Ddemo-provider%26dubbo%3D2.5.6%26generic%3Dfalse%26interface%3Dcom.alibaba.dubbo.demo.DemoService%26methods%3DsayHello%26pid%3D4427%26side%3Dprovider%26timestamp%3D1508464040452
,dubbo%3A%2F%2F10.57.241.44%3A20880%2Fcom.alibaba.dubbo.demo.DemoService%3Fanyhost%3Dtrue%26application%3Ddemo-provider%26dubbo%3D2.5.6%26generic%3Dfalse%26interface%3Dcom.alibaba.dubbo.demo.DemoService%26methods%3DsayHello%26pid%3D4308%26side%3Dprovider%26timestamp%3D1508462946325]

新启动的Provider的日志:

1
2
3
[20/10/17 09:47:21:021 CST] main  INFO zookeeper.ZookeeperRegistry:  [DUBBO] Register: dubbo://10.57.241.44:20881/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4427&side=provider&timestamp=1508464040452, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 09:47:21:021 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://10.57.241.44:20881/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4427&side=provider&timestamp=1508464040452, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 09:47:21:021 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://10.57.241.44:20881/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4427&side=provider&timestamp=1508464040452, urls: [empty://10.57.241.44:20881/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4427&side=provider&timestamp=1508464040452], dubbo version: 2.5.6, current host: 127.0.0.1

启动Consumer,为了观察RPC调用期间,消费者的相关流程,我们在RPC调用完,sleep了1分钟

1
2
3
4
5
6
7
8
9
[20/10/17 09:50:13:013 CST] main  INFO zookeeper.ZookeeperRegistry:  [DUBBO] Register: consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=consumers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4434&side=consumer&timestamp=1508464212849, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:13:013 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=providers,configurators,routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4434&side=consumer&timestamp=1508464212849, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:13:013 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url consumer://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=providers,configurators,routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4434&side=consumer&timestamp=1508464212849, urls: [dubbo://10.57.241.44:20881/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4427&side=provider&timestamp=1508464040452, dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, empty://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=configurators&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4434&side=consumer&timestamp=1508464212849, empty://10.57.241.44/com.alibaba.dubbo.demo.DemoService?application=demo-consumer&category=routers&check=false&dubbo=2.5.6&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4434&side=consumer&timestamp=1508464212849], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:13:013 CST] main INFO transport.AbstractClient: [DUBBO] Successed connect to server /10.57.241.44:20881 from NettyClient 10.57.241.44 using dubbo version 2.5.6, channel is NettyChannel [channel=[id: 0x0f2ff811, /10.57.241.44:54772 => /10.57.241.44:20881]], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:13:013 CST] main INFO transport.AbstractClient: [DUBBO] Start NettyClient zqhmac/10.57.241.44 connect to the server /10.57.241.44:20881, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:14:014 CST] main INFO transport.AbstractClient: [DUBBO] Successed connect to server /10.57.241.44:20880 from NettyClient 10.57.241.44 using dubbo version 2.5.6, channel is NettyChannel [channel=[id: 0x4efc180e, /10.57.241.44:54773 => /10.57.241.44:20880]], dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:14:014 CST] main INFO transport.AbstractClient: [DUBBO] Start NettyClient zqhmac/10.57.241.44 connect to the server /10.57.241.44:20880, dubbo version: 2.5.6, current host: 10.57.241.44
[20/10/17 09:50:14:014 CST] main INFO config.AbstractConfig: [DUBBO] Refer dubbo service com.alibaba.dubbo.demo.DemoService from url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=demo-consumer&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4434&remote.timestamp=1508464040452&side=consumer&timestamp=1508464212849, dubbo version: 2.5.6, current host: 10.57.241.44
Hello world, response form provider: 10.57.241.44:20880

在这一分钟内,查看ZK的consumers信息:

1
2
[zk: localhost:2181(CONNECTED) 26] ls /dubbo/com.alibaba.dubbo.demo.DemoService/consumers
[consumer%3A%2F%2F10.57.241.44%2Fcom.alibaba.dubbo.demo.DemoService%3Fapplication%3Ddemo-consumer%26category%3Dconsumers%26check%3Dfalse%26dubbo%3D2.5.6%26interface%3Dcom.alibaba.dubbo.demo.DemoService%26methods%3DsayHello%26pid%3D4434%26side%3Dconsumer%26timestamp%3D1508464212849]

再调用多次consumer,可以看到每次RPC调用会负载到不同的provider上:

dubboproviders

关闭provider:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[20/10/17 11:38:58:058 CST] DubboShutdownHook  INFO config.AbstractConfig:  [DUBBO] Run shutdown hook now., dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=demo-provider&dubbo=2.5.6&interface=com.alibaba.dubbo.registry.RegistryService&pid=4308&timestamp=1508462946295], dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy registry:zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=demo-provider&dubbo=2.5.6&interface=com.alibaba.dubbo.registry.RegistryService&pid=4308&timestamp=1508462946295, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy unregister url dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy unsubscribe url provider://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&category=configurators&check=false&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] ZkClient-EventThread-14-127.0.0.1:2181 INFO zkclient.ZkEventThread: Terminate ZkClient event thread.
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO zookeeper.ZooKeeper: Session: 0x15f376495000000 closed
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO dubbo.DubboProtocol: [DUBBO] Close dubbo server: /10.57.241.44:20880, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO transport.AbstractServer: [DUBBO] Close NettyServer bind /0.0.0.0:20880, export /10.57.241.44:20880, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] main-EventThread INFO zookeeper.ClientCnxn: EventThread shut down for session: 0x15f376495000000
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO dubbo.DubboProtocol: [DUBBO] Unexport service: dubbo://10.57.241.44:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1
[20/10/17 11:38:58:058 CST] DubboShutdownHook INFO injvm.InjvmProtocol: [DUBBO] Unexport service: injvm://127.0.0.1/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&dubbo=2.5.6&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=4308&side=provider&timestamp=1508462946325, dubbo version: 2.5.6, current host: 127.0.0.1

Process finished with exit code 130

文章目录
  1. 1. QuickStart