io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 5133828096, max: 5145362432)

GitHub | long-xuan-nguyen | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    Connection leak when there is a master/slave node fail over

    GitHub | 7 months ago | long-xuan-nguyen
    io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 5133828096, max: 5145362432)
  2. 0

    GitHub comment 5452#228587747

    GitHub | 9 months ago | Kangmo
    io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 64 byte(s) of direct memory (used: 1048576, max: 1048576). Stack : io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 64 byte(s) of direct memory (used: 1048576, max: 1048576)
  3. 0

    Netty client (io.netty.util.internal.OutOfDirectMemoryError)

    Google Groups | 8 months ago | Unknown author
    io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 922746880, max: 928514048)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Memory leak in latest netty version.

    GitHub | 2 months ago | doom369
    io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 64 byte(s) of direct memory (used: 468189141, max: 468189184)
  6. 0

    How to find a root cause of the following netty error: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s)

    Stack Overflow | 3 weeks ago | darek_n
    io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 117440512, max: 119537664)

    Root Cause Analysis

    1. io.netty.util.internal.OutOfDirectMemoryError

      failed to allocate 16777216 byte(s) of direct memory (used: 5133828096, max: 5145362432)

      at io.netty.util.internal.PlatformDependent.incrementMemoryCounter()
    2. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:613)
      2. io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:567)
      3. io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:699)
      4. io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:688)
      5. io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:237)
      6. io.netty.buffer.PoolArena.allocate(PoolArena.java:213)
      7. io.netty.buffer.PoolArena.allocate(PoolArena.java:141)
      8. io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:262)
      9. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)
      10. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:170)
      11. io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:131)
      12. io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:73)
      13. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:111)
      14. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)
      15. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:512)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:426)
      17. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)
      18. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:805)
      19. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)
      19 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame