[SXP-25] SXP Bytebuff memory leak Created: 19/May/15  Updated: 17/Jun/15  Resolved: 17/Jun/15

Status: Resolved
Project: sxp
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Martin Mihálek Assignee: Martin Mihálek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3282

 Description   

SXP does not release outbound messages after writing them out to wire => ByteBuf is reference-counted type in Netty and JVM is not aware of the reference counting Netty implements, it will automatically GC them once they become unreachable
even if their reference counts are not zero, and memory leak be created.



 Comments   
Comment by Martin Mihálek [ 19/May/15 ]

io.netty.buffer.AdvancedLeakAwareByteBuf.writeBytes(AdvancedLeakAwareByteBuf.java:565)
org.opendaylight.sxp.core.messaging.MessageFactory.getMessage(MessageFactory.java:547)
org.opendaylight.sxp.core.messaging.MessageFactory.createPurgeAll(MessageFactory.java:148)
org.opendaylight.sxp.core.SxpConnection.shutdown(SxpConnection.java:963)
org.opendaylight.sxp.core.SxpNode.removeConnection(SxpNode.java:681)

Comment by Martin Mihálek [ 12/Jun/15 ]

https://git.opendaylight.org/gerrit/#/c/22440/

Generated at Wed Feb 07 20:39:45 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.