Java GC: top object classes promoted (by size)?
问题 Please let me know what is the best way to determine composition of young generation memory promoted to old generation, after each young GC event? Ideally I would like to know class names which are responsible say, for 80% of heap in each "young gen -> old gen" promotion chunk; Example: I have 600M young gen, each tenure promotes 6M; I want to know which objects compose this 6M. Thank you. 回答1: There is no easy way to do this, however, I have recently been analyzing memory performance of