I add -Dio.netty.leakDetection.level=ADVANCED
for leak detecting on production.
And there are some logs:
ERROR 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: 4 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: 5
Does it means it must will happen memory leak?
I want to test it on local environment, so I set -Dio.netty.leakDetection.level=PARANOID
, but there are no the above memory leak records logs.