The system I work with creates a lot of objects and garbage that collect them all the time, which leads to a very cool-jagged heap consumption schedule. I would like to know what objects are created to set up the code, but I cannot figure out how to dump the heap at the time the garbage collection starts. When I tried to initiate dumpHeap via JConsole manually at arbitrary points in time, I always got results after the GC finished its launch and did not receive any useful data.
Any notes on how to track excessive creation of temporary objects are welcome.
gooli source
share