Can JVisualVM “Heap Dump” button release memory?

后端 未结 2 452
小鲜肉
小鲜肉 2021-01-12 15:18

i have a very strange problem. I\'m working on an OSGi application, based on Eclipse Equinox; it was developed using OSGi Log Service (Equinox implementation) and now I\'m t

2条回答
  •  日久生厌
    2021-01-12 15:56

    Why are you even bothered by GC? If the memory is properly released, there is no need to worry. But if you want to discover what causes heap to grow (even thou it's not a leak), look at this: How can I take a heap dump on Java 5 without garbage collecting first?.

提交回复
热议问题