khuangz opened a new issue, #4274:
URL: https://github.com/apache/shenyu/issues/4274

   ### Question
   
   any suggestion to prevent this issue?
   
   here is the error stack
   `Caused by: io.netty.util.internal.OutOfDirectMemoryError: failed to 
allocate 4194304 byte(s) of direct memory (used: 2143289351, max: 2147483648)
           at 
io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:806)
           at 
io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:735)
           at 
io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:649)
           at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:624)
           at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:203)
           at io.netty.buffer.PoolArena.tcacheAllocateNormal(PoolArena.java:187)
           at io.netty.buffer.PoolArena.allocate(PoolArena.java:136)
           at io.netty.buffer.PoolArena.allocate(PoolArena.java:126)
           at 
io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:396)
           at 
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188)
           at 
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)
           at 
io.netty.channel.unix.PreferredDirectByteBufAllocator.ioBuffer(PreferredDirectByteBufAllocator.java:53)
           at 
io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:120)
           at 
io.netty.channel.epoll.EpollRecvByteAllocatorHandle.allocate(EpollRecvByteAllocatorHandle.java:75)
           at 
io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:785)
           at 
io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:487)
           at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:385)
           at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
           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:750)`
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to