We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参数较大,500并发做压力测试的时候,出现“Unique key [xxxx] maybe write overflow"的异常
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
uname -a
The text was updated successfully, but these errors were encountered:
RPC在写出数据的时候,会检测当前的ChannelOutboundBuffer的大小,如果超过了WRITE_BUFFER_HIGH_WATER_MARK(默认64K),就会限流,报write overflow的异常。 这个是为了保护客户端,防止无界的ChannelOutboundBuffer被打爆,导致资源耗尽。 通常情况下,网络有问题,导致写出失败;或者下游压力太大,不能处理这么多网络包的时候会出现这样的异常。
建议首先排查网络环境(网卡打满也是一种) 网络环境没问题的情况下,看下是否是流量过大,导致下游处理不过来。,如果是这种,可能意味着,这就是压测的瓶颈了。可以评估下游扩容,性能优化等方式来解决。 如果确实认为64k 也不够用. 可以自行调整
-Dbolt.netty.buffer.low.watermark -Dbolt.netty.buffer.high.watermark 值自己算一下,默认是32*1024 和64*1024
Sorry, something went wrong.
那没问题的话, 我先关掉了?如果还有疑问,可以再打开。谢谢~
No branches or pull requests
Your question
参数较大,500并发做压力测试的时候,出现“Unique key [xxxx] maybe write overflow"的异常
Your scenes
describe your use scenes (why need this feature)
Your advice
describe the advice or solution you'd like
Environment
java -version
):1.8uname -a
):linuxThe text was updated successfully, but these errors were encountered: