LeungKitSam
LeungKitSam
@spencergibb I tried to set the two properties that @gihad mentioned and -XX:MaxDirectMemorySize=256m,but it seemed not working.I tested with 1000 threads and got the below exception: > io.netty.util.internal.OutOfDirectMemoryError: failed to...
update a leak detection log: > 2020-06-11 10:56:05,950 2355163 [nioEventLoopGroup-3-8] ERROR io.netty.util.ResourceLeakDetector - LEAK: ByteBuf.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information. Recent access records: #1:...
update: spring-cloud.version: Hoxton.SR9 spring-boot.version: 2.3.7.RELEASE I customize a filter to rewrite the request like this: ``` Class inClass = Object.class; Mono requestMono = ServerWebExchangeUtils.cacheRequestBodyAndRequest(exchange, (serverHttpRequest) -> ServerRequest .create(exchange.mutate().request(serverHttpRequest).build(), messageReaders).bodyToMono(inClass) .doOnNext((objectValue)...
update: I add some codes about Databuffer as below in my custom global exception handler.The issue seems to be improved. ``` Object cachedRequestBody = request.exchange().getAttributes().get(ServerWebExchangeUtils.CACHED_REQUEST_BODY_ATTR); if (cachedRequestBody instanceof DataBuffer) {...