java.lang.OutOfMemoryError: Direct buffer memory

JBoss Issue Tracker | Radim Hatlapatka | 1 year ago
  1. 0

    When sending fragmented binary message (message with message payload of length 4 * 2**20 (4M). Sent out in fragments of 64). The server throws {{java.lang.OutOfMemoryError: Direct buffer memory}} [1] The memory for direct buffer by default depends on the size set by -Xmx, which is in EAP 7.0.0.DR4 by default set to -Xmx512m. Increasing it just increases the time before the limit is hit (it is enough to send those messages multiple times to hit the limit again). I believe the issue is similar to the one for EAP 6.4: [] [1] {noformat} 15:10:55,463 ERROR [org.xnio.listener] (default I/O-1) XNIO001007: A channel event listener threw an exception: java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory( at java.nio.DirectByteBuffer.<init>( at java.nio.ByteBuffer.allocateDirect( at org.xnio.BufferAllocator$2.allocate( at org.xnio.BufferAllocator$2.allocate( at org.xnio.ByteBufferSlicePool.allocate( at io.undertow.websockets.core.BufferedBinaryMessage$1.handleEvent( at io.undertow.websockets.core.BufferedBinaryMessage$1.handleEvent( at org.xnio.ChannelListeners.invokeChannelListener( at io.undertow.server.protocol.framed.AbstractFramedStreamSourceChannel$ at org.xnio.nio.WorkerThread.safeRun( at {noformat}

    JBoss Issue Tracker | 1 year ago | Radim Hatlapatka
    java.lang.OutOfMemoryError: Direct buffer memory
  2. 0

    OutOfMemory: Direct buffer memory

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

    Automated exception search integrated into your IDE

  4. 0

    sshandle still have memory leak, tested with 4.0.24, 4.0.25 and 4.0.17.

    GitHub | 2 years ago | devsunny
    java.lang.OutOfMemoryError: Direct buffer memory
  5. 0

    OutOfMemoryError: Direct buffer memory

    GitHub | 1 year ago | kegangkai
    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
      1. java.nio.Bits.reserveMemory(
      2. java.nio.DirectByteBuffer.<init>(
      3. java.nio.ByteBuffer.allocateDirect(
      3 frames
    3. XNIO API
      1. org.xnio.BufferAllocator$2.allocate(
      2. org.xnio.BufferAllocator$2.allocate(
      3. org.xnio.ByteBufferSlicePool.allocate(
      3 frames
    4. Undertow Core
      1. io.undertow.websockets.core.BufferedBinaryMessage$1.handleEvent(
      2. io.undertow.websockets.core.BufferedBinaryMessage$1.handleEvent(
      2 frames
    5. XNIO API
      1. org.xnio.ChannelListeners.invokeChannelListener(
      1 frame
    6. Undertow Core
      1. io.undertow.server.protocol.framed.AbstractFramedStreamSourceChannel$
      1 frame
    7. XNIO NIO Implementation
      1. org.xnio.nio.WorkerThread.safeRun(
      2 frames