java.lang.OutOfMemoryError: Direct buffer memory

Google Groups | Ngoc Dao | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Reconnection logic

    Google Groups | 3 years ago | Ngoc Dao
    java.lang.OutOfMemoryError: Direct buffer memory
  2. 0

    Latest Pushy Version and OutOfMemory "Direct buffer memory"

    Google Groups | 3 years ago | Mark Salm
    java.lang.OutOfMemoryError: Direct buffer memory
  3. 0

    OutOfMemory: Direct buffer memory

    GitHub | 3 years ago | defabricated
    io.netty.handler.codec.DecoderException: java.lang.OutOfMemoryError: Direct buffer memory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Lucene - Java Developer - [JENKINS] Lucene-Solr-NightlyTests-trunk - Build # 751 - Failure

    nabble.com | 2 years ago
    java.lang.RuntimeException: The max direct memory is likely too low.  Either increase it (by adding -XX:MaxDirectMemorySize=<size>g -XX:+UseLargePages to your containers startup args) or disable direct allocation using solr.hdfs.blockcache.direct.memory.allocation=false in solrconfig.xml. If you are putting the block cache on the heap, your java heap size might not be large enough. Failed allocating ~134.217728 MB. at __randomizedtesting.SeedInfo.seed([CFF8055BD375688E:3857CC702EFC82A5]:0)
  6. 0

    Out of memory error. Corfu process heap memory was around 200mb

    GitHub | 1 year ago | vaibhavkulkar
    io.netty.handler.codec.DecoderException: java.lang.OutOfMemoryError: Direct buffer memory

    7 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Direct buffer memory

      at java.nio.Bits.reserveMemory()
    2. Java RT
      ByteBuffer.allocateDirect
      1. java.nio.Bits.reserveMemory(Bits.java:658)[na:1.8.0_20]
      2. java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)[na:1.8.0_20]
      3. java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)[na:1.8.0_20]
      3 frames
    3. Netty
      AbstractChannel.writeAndFlush
      1. io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:437)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      2. io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:179)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      3. io.netty.buffer.PoolArena.allocate(PoolArena.java:168)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      4. io.netty.buffer.PoolArena.allocate(PoolArena.java:98)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      5. io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:250)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      6. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:155)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      7. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:146)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      8. io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:83)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      9. io.netty.handler.ssl.SslHandler.allocate(SslHandler.java:1278)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      10. io.netty.handler.ssl.SslHandler.allocateOutNetBuf(SslHandler.java:1288)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      11. io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:454)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      12. io.netty.handler.ssl.SslHandler.flush(SslHandler.java:432)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      13. io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:688)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      14. io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:669)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      15. io.netty.channel.ChannelOutboundHandlerAdapter.flush(ChannelOutboundHandlerAdapter.java:115)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      16. io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:688)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      17. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:718)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      18. io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      19. io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      20. io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      21. io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:243)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      21 frames
    4. com.relayrides.pushy
      ApnsConnection$3.run
      1. com.relayrides.pushy.apns.ApnsConnection$3.run(ApnsConnection.java:532)[pushy-0.4.1.jar:na]
      1 frame
    5. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      2. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      3. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      4. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[netty-all-4.0.24.Final.jar:4.0.24.Final]
      4 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_20]
      1 frame