Hi i'm trying to understand why so memory consumption in my app so i have downloaded a heapdump with visualjvm and then have analysed it with eclipse mat. It have found the following problem:
One instance of "io.netty.buffer.PoolChunk" loaded by "jdk.internal.loader.ClassLoaders$AppClassLoader @ 0x7f04ba5b0" occupies 16,793,832 (32.78 %) bytes. The memory is accumulated in one instance of "byte[]" loaded by "<system class loader>".
Could anybody give me some advice on how to fix this issue? What data to look and search for?
My first try was to set -Dio.netty.allocator.type=unpooled param, this have removed this problem suspect related to bytes, but introduced others 2 related to class loaders.