huayangchan

Results 3 comments of huayangchan

我用jmeter+nacos-client试了压测。我是继承了jmeter的AbstractJavaSamplerClient,实现了它的runTest方法,在runTest的方法里先创建好GrpcSdkClient,用GrpcSdkClient.start方法建立起链接,new好注册请求,调用request方法发送请求,但是报错 四月 28, 2024 10:36:23 上午 com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference cleanQueue 严重: *~*~*~ Channel ManagedChannelImpl{logId=25, target=******} was not shutdown properly!!! ~*~*~* Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true. java.lang.RuntimeException:...

换成创建NacosNameingService的进行测试,也还是不行,报错了:com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:STARTING 报错信息: 2024-04-29 13:08:55,864 INFO c.a.n.c.r.client: [92338cf8-3a64-4fbc-a8e4-159c24bcbed1] RpcClient init label, labels = {module=naming, source=sdk} 2024-04-29 13:08:55,983 INFO c.a.n.p.a.s.c.ClientAuthPluginManager: [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. 2024-04-29 13:08:55,983...

> Client not connected, current status:STARTING > > 说明客户端没连上服务端, 排查一下配置是否正确,比如host,端口,以及网络本身是否正常。 我把nacos的项目中的nacos-client模块本地打包,放在jmeter里用,服务能注册上,用maven仓中的nacos-client反而不行