Q&A
Q&AWhat evidence distinguishes high allocation from a Java memory leak?
Compare post-GC live-set size and object retention paths over time.
Read the concise answer
High allocation can cause frequent collections while post-GC occupancy remains broadly stable. A leak tends to retain objects that should have become unreachable, so compare heap dumps and dominator paths across time. Check allocation rate, live set, GC logs, and process/container memory together before changing heap settings.