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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Unknown author, 10 months ago
failed to allocate 16777216 byte(s) of direct memory (used: 922746880, max: 928514048)
via GitHub by liuzhengyang
, 7 months ago
failed to allocate 16777216 byte(s) of direct memory (used: 1828716544, max: 1834483712)
via Couchbase JIRA by Mihir Kamdar, 2 months ago
failed to allocate 16777216 byte(s) of direct memory (used: 1862270983, max: 1864368128)
via GitHub by long-xuan-nguyen
, 1 year ago
failed to allocate 16777216 byte(s) of direct memory (used: 5133828096, max: 5145362432)
via GitHub by alexbarta
, 2 months ago
failed to allocate 16777216 byte(s) of direct memory (used: 3808428032, max: 3817865216)
via GitHub by PhanaticD
, 2 months ago
failed to allocate 16777216 byte(s) of direct memory (used: 15267266567, max: 15271460864)
io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 922746880, max: 928514048)
at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:613)
at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:567)
at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:686)
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:675)
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:237)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:221)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:141)
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:262)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:170)
at io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:131)
at io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:73)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:111)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:512)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:426)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

3 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.