I have noticed, that once the LazyReferenceManager starts working, it keeps calling beginCycle and endCycle.
These two call .trace with a method reference that prints statistics. These LazyArg instances keep polluting memory, which is quite unnecessary, as they could be private final.
This is what it looks like in VisualVM, it goes up and down like 170MB every 5 seconds or so.
I am using the default configuration for LazyReferenceManager.
Hey,
I have noticed, that once the
LazyReferenceManager
starts working, it keeps callingbeginCycle
andendCycle
.These two call
.trace
with a method reference that prints statistics. TheseLazyArg
instances keep polluting memory, which is quite unnecessary, as they could beprivate final
.https://github.com/eclipse-serializer/serializer/blob/9f1a2ab72754f5c6abeafd2419330f3f521d6d7f/base/src/main/java/org/eclipse/serializer/reference/Lazy.java#L856C1-L883C5
This is what it looks like in VisualVM, it goes up and down like 170MB every 5 seconds or so. I am using the default configuration for
LazyReferenceManager
.