System.gc() is suggests way to run GC and so does System.runFinalization();
but the use Jmap to do heap dump, it will force to do GC/full GC. so my question is: are there any tools/methods/hooks just like Jmap heap dump that can be used to force execute runFinalization?
I'd like to describe my situation a little bit more: my heap size won't decrease after a certain time and when I do a head dump I can see that:
1: 6793014 271720560 java.lang.ref.Finalizer
2: 7251647 232052704 java.util.HashMap$Node
3: 6791349 162992376 XX.WP<--- which has override finalize method
so I assumed that it could be caused by finalize method and I'd like give it a quick verification by force execute runFinalization.