CuncurrentHashMap$Node accumulate in heap without clean by GC
I am using ConcurrentHashMap
to cache some short-lived data. That is, there are not many entries in the cache, but insertion and deletion often occur. The problem is that when working under load, GC does not delete java.util.concurrent.ConcurrentHashMap$Node
and they accumulate in heap. Even after the end of the load, they are not cleaned.