So, I look at the heap with jmap on the remote box, and I want to force garbage collection on it. How do you do this without inserting jvisualvm or jconsole and friends?
I know that you should not practice garbage collection - you just need to understand why the heap is big / growing.
I also understand that System.GC () does not actually force garbage collection - it just tells GC that you want it to happen.
Having said that, is there a way to make this easy? Am I missing some command line application?
java garbage-collection jmap jmx
eyberg Aug 19 '10 at 16:17 2010-08-19 16:17
source share