whirring opened a new issue, #5801: URL: https://github.com/apache/shenyu/issues/5801
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Same as [Question#4274](https://github.com/apache/shenyu/issues/4274) I used Shenyu 2.4.1 in our production environment, for tps lower than 20 per second this bug first appeared at 24.7.30, shenyu-bootstrap jvm options `-Xmx2g -Xms2g -Xmn1g -Xss256k` then I temporarily changed jvm memory to `-Xmx4g -Xms4g -Xmn1g -Xss256k` but at 24.11.21, this debug appeared again, logs goes like below ### Expected Behavior I think maybe `ByteBuffer` in netty not released finally we only used divide, context_path, sign and monitor plugins ### Steps To Reproduce _No response_ ### Environment ```markdown ShenYu version(s): 2.4.1 ``` ### Debug logs io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 4076863495, max: 4080271360) at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:726) at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:681) at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:758) at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:734) at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:245) at io.netty.buffer.PoolArena.allocate(PoolArena.java:227) at io.netty.buffer.PoolArena.reallocate(PoolArena.java:397) at io.netty.buffer.PooledByteBuf.capacity(PooledByteBuf.java:119) at io.netty.buffer.AbstractByteBuf.ensureWritable0(AbstractByteBuf.java:310) at io.netty.buffer.AbstractByteBuf.ensureWritable(AbstractByteBuf.java:281) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1118) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1111) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1102) at io.netty.handler.codec.ByteToMessageDecoder$1.cumulate(ByteToMessageDecoder.java:96) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279) at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1422) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:931) at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:792) at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe$1.run(AbstractEpollChannel.java:394) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510) at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:413) at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) ### Anything else? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org