Producer wait for broker response when send a message often shows RemotingTimeoutException
See original GitHub issueAs the title,when producer send messages to broker,shows the flowing WARN:
RemotingTimeoutException: wait response on the channel timeout 3000ms.
We excluded network problems by network packet capture.
When producer send A message ,the broker need 4000ms to respond, or even more.This has exceeded the maximum timeout.
I’m sorry I can’t go to the email community to discuss it because I’m a Chinese developer, And the community is for me is 404ERROR.
NEED some help,PLEASE. Thank you Handsome guys.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
[GitHub] [rocketmq] RongtongJin commented on ... - The Mail Archive
[GitHub] [rocketmq] RongtongJin commented on issue #2427: Producer wait for broker response when send a message often shows RemotingTimeoutException.
Read more >Guidelines to handle Timeout exception for Kafka Producer?
To handle the timeout exceptions, the general practice is: Rule out broker side issues. make sure that the topic partitions are fully replicated ......
Read more >How should I implement request response with JMS - ActiveMQ
The best way to implement request-response over JMS is to create a temporary queue and consumer per client on startup, set JMSReplyTo property...
Read more >Frequently Asked Questions: Real Estate Brokers ... - Mass.gov
I processed my renewal application online with the payment but I have not received my wallet license in the mail. What is the...
Read more >11 Best Real Estate Text Message Scripts for Agents Who Don ...
My name is [your first name] and I'm a Realtor with [your brokerage]. Is your home at [home's address] still for sale? [Wait...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
那就看看是不是磁盘的问题,应该刷盘慢的时间段await, io util也很高,但看起来业务量不大。配置看起来设置比较简单,MQ这边可以调优一下线程数sendMessageThreadPoolNums,开启transientStorePoolEnable减少刷盘毛刺。可以执行下distribution/bin/os.sh脚本优化一下操作系统参数,特别是一些脏页writeback参数、IO请求调度算法等,另外尽量不要使用swap分区,需要通过工具来复现找出具体原因。
和issue428应该没有什么关系,刷盘慢是原因,timeout是结果。
2020-11-10 18:47:22 WARN SendMessageThread_5 - putMessage not in lock eclipse time(ms)=4401, bodyLength=520 2020-11-10 18:47:22 WARN SendMessageThread_44 - putMessage not in lock eclipse time(ms)=4344, bodyLength=497 2020-11-10 18:47:22 WARN SendMessageThread_35 - putMessage not in lock eclipse time(ms)=2453, bodyLength=539 2020-11-10 18:47:22 WARN SendMessageThread_43 - putMessage not in lock eclipse time(ms)=3086, bodyLength=552
这些日志显示某些请求的putMessage时间超过了4s,但从当前日志无法判定是刷盘慢了,还是同步数据数据慢了,又或者是发生了full gc, 可以排查一下broker的gc日志,或者看看store.log中[PAGECACHERT]的统计是否有明显刷盘超时等