Closed linjikun closed 3 days ago
这个报错不是内存溢出, 是你的单次请求大小超过了限制,请调整nacos.remote.server.grpc.sdk.max-inbound-message-size
和nacos.remote.server.grpc.cluster.max-inbound-message-size
参数
这个报错不是内存溢出, 是你的单次请求大小超过了限制,请调整
nacos.remote.server.grpc.sdk.max-inbound-message-size
和nacos.remote.server.grpc.cluster.max-inbound-message-size
参数
已经尝试过,配置这两个参数是无效的,官方的版本提示,这两个是2.3.0之后的参数,我使用的版本是2.2.3,然后看了源码,配置以下两个参数 -Dnacos.remote.client.grpc.maxinbound.message.size= -Dnacos.remote.server.grpc.maxinbound.message.size= 依旧没有用
@linjikun 我们这边也有这个报错,请问您这两个参数调整成多少了呢?最后报错还是10485760吗?
@linjikun 我们这边也有这个报错,请问您这两个参数调整成多少了呢?最后报错还是10485760吗?
怎么配置都没有用,最后还是报错达到上限10485760
@linjikun 确定配置对了吗?我这边试了下,改完之后可以生效,下面是启动参数,调到了50M
@linjikun 确定配置对了吗?我这边试了下,改完之后可以生效,下面是启动参数,调到了50M
我这边是在application.properties的文件配置的,难道需要在启动参数配置才生效吗
@linjikun 确定配置对了吗?我这边试了下,改完之后可以生效,下面是启动参数,调到了50M
你使用的是什么版本的nacos
@linjikun 对的,-D注入,你可以再试试,我在测试环境调成10kb后,稳定复现这个报错。2.2.0的
这个报错不是内存溢出, 是你的单次请求大小超过了限制,请调整
nacos.remote.server.grpc.sdk.max-inbound-message-size
和nacos.remote.server.grpc.cluster.max-inbound-message-size
参数
@KomachiSion 请问下,这个单次请求是请求什么?会随着时间增大吗?这个值设置大了会有什么问题?现在我们发现这个错可能会导致节点实例数不一致
2.2.3版本,通过-D的方式配置参数后,问题修复
Describe the bug A clear and concise description of what the bug is. nacos内存溢出重启后报错 Send request fail, response = DistroDataRequest{header={},requestId='null'}, retryTime= 1,errorMessage= java.util.concurrent.ExecutionException:io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: message exceeds maximun size: 10485760: 19140174
open jdk 1.8,nacos-2.2.3