java.lang.OutOfMemoryError: Direct buffer memory

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

java.lang.OutOfMemoryError: Direct buffer memory

Mark One
151372.416: [GC (System.gc()) [PSYoungGen: 1065K->96K(627200K)] 182282K->181312K(2007552K), 0.0035831 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
151372.420: [Full GC (System.gc()) [PSYoungGen: 96K->0K(627200K)] [ParOldGen: 181216K->181246K(1380352K)] 181312K->181246K(2007552K), [Metaspace: 41700K->41700K(1087488K)], 0.3004255 secs] [Times: user=0.56 sys=0.00, real=0.30 secs]
08:26:41.586 [ratpack-compute-1-36] ERROR r.s.internal.NettyHandlerAdapter -
java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:658) ~[na:1.8.0_40]
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) ~[na:1.8.0_40]
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) ~[na:1.8.0_40]
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:437) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:179) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:168) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:98) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:241) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:155) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:146) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:107) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.AdaptiveRecvByteBufAllocator$HandleImpl.allocate(AdaptiveRecvByteBufAllocator.java:104) ~[netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:113) ~[netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:510) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:467) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:381) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:703) [netty-common-4.1.0.Beta4.jar:4.1.0.Beta4]
at ratpack.exec.internal.DefaultExecController$ExecControllerBindingThreadFactory.lambda$newThread$63(DefaultExecController.java:82) [ratpack-core-0.9.15.jar:na]
at ratpack.exec.internal.DefaultExecController$ExecControllerBindingThreadFactory$$Lambda$90/920632751.run(Unknown Source) [ratpack-core-0.9.15.jar:na]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-common-4.1.0.Beta4.jar:4.1.0.Beta4]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
08:26:41.892 [ratpack-compute-1-3] ERROR r.s.internal.NettyHandlerAdapter -
java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:658) ~[na:1.8.0_40]
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) ~[na:1.8.0_40]
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) ~[na:1.8.0_40]
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:437) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:179) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:168) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:98) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:241) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:155) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:146) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:107) ~[netty-buffer-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.AdaptiveRecvByteBufAllocator$HandleImpl.allocate(AdaptiveRecvByteBufAllocator.java:104) ~[netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:113) ~[netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:510) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:467) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:381) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353) [netty-transport-4.1.0.Beta4.jar:4.1.0.Beta4]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:703) [netty-common-4.1.0.Beta4.jar:4.1.0.Beta4]
at ratpack.exec.internal.DefaultExecController$ExecControllerBindingThreadFactory.lambda$newThread$63(DefaultExecController.java:82) [ratpack-core-0.9.15.jar:na]
at ratpack.exec.internal.DefaultExecController$ExecControllerBindingThreadFactory$$Lambda$90/920632751.run(Unknown Source) [ratpack-core-0.9.15.jar:na]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-common-4.1.0.Beta4.jar:4.1.0.Beta4]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
151372.722: [GC (System.gc()) [PSYoungGen: 1416K->64K(627200K)] 182663K->181310K(2007552K), 0.0035193 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.OutOfMemoryError: Direct buffer memory

danhyun
Hi,

Could you please supply the code that produces this stacktrace?

Thanks,