GitHub user yuluo-yx added a comment to the discussion: Windows环境运行SDK收发示例失败
> > > 你应该查看客户端日志而不是服务端日志 > > > > > > 客户端日志路径是那儿? > > 请查看相关文档,对于 Java gRPC 客户端可以默认在 `$HOME/logs/rocketmq`,详见文档 [Logging > System](https://github.com/apache/rocketmq-clients/tree/master/java#logging-system) > 一节 我想我找到了客户端日志:  ``` 2023-03-12 18:09:04.297 INFO [20068] [ProducerImpl-0 STARTING] [o.a.r.c.j.i.p.ProducerImpl#startUp:113] - Begin to start the rocketmq producer, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:04.303 INFO [20068] [ProducerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:181] - Begin to start the rocketmq client, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:04.304 INFO [20068] [ClientManagerImpl-0 STARTING] [o.a.r.c.j.i.ClientManagerImpl#startUp:368] - Begin to start the client manager, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:04.308 INFO [20068] [ClientManagerImpl-0 STARTING] [o.a.r.c.j.i.ClientManagerImpl#startUp:423] - The client manager starts successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:04.309 INFO [20068] [ProducerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:184] - Begin to fetch topic(s) route data from remote during client startup, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms, topics=[TestTopic] 2023-03-12 18:09:05.315 INFO [20068] [RocketmqClientScheduler-0-2] [o.a.r.c.j.i.ClientManagerImpl#lambda$startUp$2:398] - Start to log statistics, clientVersion=5.0.4, clientWrapperVersion=null, clientEndpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:07.178 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.c.PushConsumerImpl#startUp:158] - Begin to start the rocketmq push consumer, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:07.184 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:181] - Begin to start the rocketmq client, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:07.185 INFO [19076] [ClientManagerImpl-0 STARTING] [o.a.r.c.j.i.ClientManagerImpl#startUp:368] - Begin to start the client manager, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:07.188 INFO [19076] [ClientManagerImpl-0 STARTING] [o.a.r.c.j.i.ClientManagerImpl#startUp:423] - The client manager starts successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:07.188 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:184] - Begin to fetch topic(s) route data from remote during client startup, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, topics=[TestTopic] 2023-03-12 18:09:07.696 INFO [20068] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientSessionImpl#onNext:129] - Receive settings from remote, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:07.698 INFO [20068] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.m.ClientMeterManager#reset:83] - Metric settings is satisfied by the current message meter, metric=Metric{endpoints=null, on=false}, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:07.703 INFO [20068] [ProducerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:190] - Fetch topic route data from remote successfully during startup, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms, topics=[TestTopic] 2023-03-12 18:09:07.704 INFO [20068] [ProducerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:201] - The rocketmq client starts successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:07.704 INFO [20068] [ProducerImpl-0 STARTING] [o.a.r.c.j.i.p.ProducerImpl#startUp:115] - The rocketmq producer starts successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:07.703 INFO [20068] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:09:07.708 INFO [20068] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientSessionImpl#onNext:132] - Init settings successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:08.195 INFO [19076] [RocketmqClientScheduler-0-2] [o.a.r.c.j.i.ClientManagerImpl#lambda$startUp$2:398] - Start to log statistics, clientVersion=5.0.4, clientWrapperVersion=null, clientEndpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:08.195 INFO [19076] [RocketmqClientScheduler-0-2] [o.a.r.c.j.i.c.PushConsumerImpl#doStats:552] - clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, consumerGroup=YourConsumerGroup, receptionTimes=0, receivedMessagesQuantity=0, consumptionOkQuantity=0, consumptionErrorQuantity=0 2023-03-12 18:09:09.661 INFO [19076] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientSessionImpl#onNext:129] - Receive settings from remote, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:09.662 INFO [19076] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.m.ClientMeterManager#reset:83] - Metric settings is satisfied by the current message meter, metric=Metric{endpoints=null, on=false}, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:09.668 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:190] - Fetch topic route data from remote successfully during startup, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, topics=[TestTopic] 2023-03-12 18:09:09.669 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.ClientImpl#startUp:201] - The rocketmq client starts successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:09.670 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.c.PushConsumerImpl#createConsumeService:198] - Create standard consume service, consumerGroup=YourConsumerGroup, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:09.671 INFO [19076] [PushConsumerImpl-0 STARTING] [o.a.r.c.j.i.c.PushConsumerImpl#startUp:172] - The rocketmq push consumer starts successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:09.668 INFO [19076] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:09:09.673 INFO [19076] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientSessionImpl#onNext:132] - Init settings successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:10.689 INFO [19076] [RocketmqClientAsyncWorker-0-21] [o.a.r.c.j.i.c.PushConsumerImpl#onSuccess:394] - Assignments of topic=TestTopic has changed, null => Assignments{assignmentList=[Assignment{messageQueue=DESKTOP-JJ1AQGL.TestTopic.-1}]}, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:10.691 INFO [19076] [RocketmqClientAsyncWorker-0-21] [o.a.r.c.j.i.c.PushConsumerImpl#syncProcessQueue:365] - Start to fetch message from remote, mq=DESKTOP-JJ1AQGL.TestTopic.-1, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:15.344 INFO [20068] [RocketmqClientAsyncWorker-0-24] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:17.708 INFO [20068] [RocketmqClientScheduler-0-5] [o.a.r.c.j.i.ClientImpl#updateRouteCache:457] - Start to update route cache for a new round, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:17.716 INFO [20068] [RocketmqClientAsyncWorker-0-8] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:09:18.208 INFO [19076] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:19.670 INFO [19076] [RocketmqClientScheduler-0-3] [o.a.r.c.j.i.ClientImpl#updateRouteCache:457] - Start to update route cache for a new round, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:19.676 INFO [19076] [RocketmqClientAsyncWorker-0-21] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:09:25.345 INFO [20068] [RocketmqClientAsyncWorker-0-11] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:28.216 INFO [19076] [RocketmqClientAsyncWorker-0-14] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:35.358 INFO [20068] [RocketmqClientAsyncWorker-0-12] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:38.217 INFO [19076] [RocketmqClientAsyncWorker-0-11] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:45.366 INFO [20068] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:47.713 INFO [20068] [RocketmqClientScheduler-0-13] [o.a.r.c.j.i.ClientImpl#updateRouteCache:457] - Start to update route cache for a new round, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:47.733 INFO [20068] [RocketmqClientAsyncWorker-0-19] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:09:48.241 INFO [19076] [RocketmqClientAsyncWorker-0-21] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:49.672 INFO [19076] [RocketmqClientScheduler-0-1] [o.a.r.c.j.i.ClientImpl#updateRouteCache:457] - Start to update route cache for a new round, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:09:49.676 INFO [19076] [RocketmqClientAsyncWorker-0-23] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:09:55.379 INFO [20068] [RocketmqClientAsyncWorker-0-24] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:09:58.219 INFO [19076] [RocketmqClientAsyncWorker-0-20] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:10:05.320 INFO [20068] [RocketmqClientScheduler-0-21] [o.a.r.c.j.i.ClientManagerImpl#lambda$startUp$2:398] - Start to log statistics, clientVersion=5.0.4, clientWrapperVersion=null, clientEndpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:10:05.387 INFO [20068] [RocketmqClientAsyncWorker-0-8] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:10:08.197 INFO [19076] [RocketmqClientScheduler-0-18] [o.a.r.c.j.i.ClientManagerImpl#lambda$startUp$2:398] - Start to log statistics, clientVersion=5.0.4, clientWrapperVersion=null, clientEndpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:10:08.197 INFO [19076] [RocketmqClientScheduler-0-18] [o.a.r.c.j.i.c.PushConsumerImpl#doStats:552] - clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, consumerGroup=YourConsumerGroup, receptionTimes=4, receivedMessagesQuantity=1, consumptionOkQuantity=1, consumptionErrorQuantity=0 2023-03-12 18:10:08.197 INFO [19076] [RocketmqClientScheduler-0-18] [o.a.r.c.j.i.c.ProcessQueueImpl#doStats:641] - Process queue stats: clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, mq=DESKTOP-JJ1AQGL.TestTopic.-1, receptionTimes=4, receivedMessageQuantity=1, cachedMessageCount=0, cachedMessageBytes=0 2023-03-12 18:10:08.220 INFO [19076] [RocketmqClientAsyncWorker-0-11] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:10:15.418 INFO [20068] [RocketmqClientAsyncWorker-0-11] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:10:17.723 INFO [20068] [RocketmqClientScheduler-0-5] [o.a.r.c.j.i.ClientImpl#updateRouteCache:457] - Start to update route cache for a new round, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:10:17.730 INFO [20068] [RocketmqClientAsyncWorker-0-12] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:10:18.220 INFO [19076] [RocketmqClientAsyncWorker-0-8] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:10:19.674 INFO [19076] [RocketmqClientScheduler-0-1] [o.a.r.c.j.i.ClientImpl#updateRouteCache:457] - Start to update route cache for a new round, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o 2023-03-12 18:10:19.678 INFO [19076] [RocketmqClientAsyncWorker-0-10] [o.a.r.c.j.i.ClientImpl#onSuccess:593] - Fetch topic route successfully, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o, topic=TestTopic, topicRouteData=TopicRouteData{messageQueueImpls=[DESKTOP-JJ1AQGL.TestTopic.0, DESKTOP-JJ1AQGL.TestTopic.1, DESKTOP-JJ1AQGL.TestTopic.2, DESKTOP-JJ1AQGL.TestTopic.3, DESKTOP-JJ1AQGL.TestTopic.4, DESKTOP-JJ1AQGL.TestTopic.5, DESKTOP-JJ1AQGL.TestTopic.6, DESKTOP-JJ1AQGL.TestTopic.7]} 2023-03-12 18:10:25.413 INFO [20068] [RocketmqClientAsyncWorker-0-16] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@20068@0@1oua38koms 2023-03-12 18:10:28.224 INFO [19076] [RocketmqClientAsyncWorker-0-20] [o.a.r.c.j.i.ClientImpl#onSuccess:554] - Send heartbeat successfully, endpoints=dns:localhost:8081, clientId=DESKTOP-JJ1AQGL@19076@0@1oubeq4b5o ``` GitHub link: https://github.com/apache/rocketmq/discussions/6305#discussioncomment-5280400 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
