[
https://issues.apache.org/jira/browse/SSHD-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541162#comment-16541162
]
jpalacios commented on SSHD-833:
--------------------------------
I gave the built in Nio2 I/O service factory a try and I'm still seeing the
same kind of messages:
{code}
ERROR [nioEventLoopGroup-2-2] io.netty.util.ResourceLeakDetector LEAK:
ByteBuf.release() was not called before it's garbage-collected. See
http://netty.io/wiki/reference-counted-objects.html for more information.
103379 Recent access records:
103380 Created at:
103381
io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:331)
103382
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:185)
103383
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:176)
103384
io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:137)
103385
io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:114)
103386
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:147)
103387
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647)
103388
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582)
103389
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)
103390 io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461)
103391
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
103392
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
103393 java.lang.Thread.run(Thread.java:748)
{code}
> Netty: ByteBuf LEAK message
> ---------------------------
>
> Key: SSHD-833
> URL: https://issues.apache.org/jira/browse/SSHD-833
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: jpalacios
> Priority: Major
>
> We recently switched from the {{MinaServiceFactoryFactory}} to the
> {{NettyIoServiceFactoryFactory}}. Now whenever the application starts we see
> the following message:
> {code:java}
> ERROR [nioEventLoopGroup-2-2] io.netty.util.ResourceLeakDetector LEAK:
> ByteBuf.release() was not called before it's garbage-collected. See
> http://netty.io/wiki/reference-counted-objects.html for more information.
> Recent access records:
> Created at:
>
> io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:331)
>
> io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:185)
>
> io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:176)
>
> io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:137)
>
> io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:114)
>
> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:147)
>
> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647)
>
> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582)
>
> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)
> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461)
>
> io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
>
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> java.lang.Thread.run(Thread.java:748)
> {code}
> It will happen a certain number of times (first time it was 5, then it was
> 20) but then it won't happen any more.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)