Redisson 3.5.2 memory leak with pooled buffers

See original GitHub issue
2017-09-12T20:50:34,681 ERROR [main] (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.
WARNING: 841 leak records were discarded because the leak record count is limited to 4. Use system property io.netty.leakDetection.maxRecords to increase the limit.
Recent access records: 4
#1:
	io.netty.buffer.AdvancedLeakAwareByteBuf.getInt(AdvancedLeakAwareByteBuf.java:186)
	io.netty.handler.codec.compression.Snappy.hash(Snappy.java:151)
	io.netty.handler.codec.compression.Snappy.encode(Snappy.java:97)
	org.redisson.codec.SnappyCodec$4.encode(SnappyCodec.java:84)
	org.redisson.RedissonObject.encodeMapKey(RedissonObject.java:201)
	org.redisson.RedissonMapCache.getOperationAsync(RedissonMapCache.java:486)
	org.redisson.RedissonMap.getAsync(RedissonMap.java:611)
	org.redisson.RedissonMap.get(RedissonMap.java:251)
#4:
	io.netty.buffer.AdvancedLeakAwareByteBuf.getByte(AdvancedLeakAwareByteBuf.java:150)
	io.netty.handler.codec.compression.Snappy.findMatchingLength(Snappy.java:188)
	io.netty.handler.codec.compression.Snappy.encode(Snappy.java:110)
	org.redisson.codec.SnappyCodec$4.encode(SnappyCodec.java:84)
	org.redisson.RedissonObject.encodeMapValue(RedissonObject.java:216)
	org.redisson.RedissonMapCache.fastPutOperationAsync(RedissonMapCache.java:1330)
	org.redisson.RedissonMap.fastPutAsync(RedissonMap.java:837)
	org.redisson.RedissonMap.fastPut(RedissonMap.java:857)
Created at:
	io.netty.util.ResourceLeakDetector.track(ResourceLeakDetector.java:237)
	io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:331)
	io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:181)
	io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:167)
	io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:101)
	org.redisson.codec.FstCodec$2.encode(FstCodec.java:83)
	org.redisson.codec.SnappyCodec$4.encode(SnappyCodec.java:82)
	org.redisson.RedissonObject.encodeMapKey(RedissonObject.java:201)
	org.redisson.RedissonMapCache.getOperationAsync(RedissonMapCache.java:486)
	org.redisson.RedissonMap.getAsync(RedissonMap.java:611)
	org.redisson.RedissonMap.get(RedissonMap.java:251)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mrnikocommented, Sep 13, 2017

Fixed

0reactions
mrnikocommented, Sep 13, 2017

@johnou You’re welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redisson memory leak When I try to create client
This looks like a bug in Redisson where it creates a lot of HashedWheelTimer without closing these. I would open a bug-report there....
Read more >
CHANGELOG.md · master · edNb8H / Redisson · GitCode
Fixed - frequent Redis master failover causes memory leak in ... Improvement - amount of simultaneously created connections during pool initialization ...
Read more >
https://raw.githubusercontent.com/redisson/redisso...
isEmpty() methods of RMap object aren't efficient Fixed - connection leak if new discovered slaves in `LOADING Redis is loading the dataset in...
Read more >
MANITOBA– MINNESOTA - Regulatory Document Index
Manitoba Hydro's desire to keep a buffer ... are likely held only in memory and therefore ... inspections to monitor for water leakage....
Read more >
Journal of - International Association for Food Protection
Contribution of KH2P04 to Toxicity in Phosphate Buffered Dilution Water. Systems ... pH values lower than 3.5 (2, 14). On the other hand,....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found