You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Julian Feinauer (Jira)" <ji...@apache.org> on 2020/02/12 07:03:00 UTC

[jira] [Commented] (PLC4X-175) ERROR ResourceLeakDetector: LEAK: ByteBuf.release() was not called before it's garbage-collected

    [ https://issues.apache.org/jira/browse/PLC4X-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17035099#comment-17035099 ] 

Julian Feinauer commented on PLC4X-175:
---------------------------------------

HI [~acs] thanks for the report. As mentioned in the channel its the same cause as here https://issues.apache.org/jira/browse/PLC4X-163.
We do not clean up all `ByteBuffer` instances correctly in the "old" drivers. I will try to fix this the next days and ideally spin up a 0.6.1 release.

> ERROR ResourceLeakDetector: LEAK: ByteBuf.release() was not called before it's garbage-collected
> ------------------------------------------------------------------------------------------------
>
>                 Key: PLC4X-175
>                 URL: https://issues.apache.org/jira/browse/PLC4X-175
>             Project: Apache PLC4X
>          Issue Type: Bug
>          Components: Driver-Modbus
>    Affects Versions: 0.5.0, 0.6.0
>            Reporter: Alvaro del Castillo
>            Priority: Major
>              Labels: leak, memory, netty
>
> After some time collecting data from a modbus TCP device we get the error:
>  
>  
> {noformat}
> 16:29:50.228 ERROR 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:644)
>         io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
>         io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
>         io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
>         io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
>         io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
>         java.lang.Thread.run(Thread.java:748)
> {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)