Can jmap -histo trigger full garbage collection?

garbage-collection, jmap

Solution

`jmap -histo` will not trigger a full gc, but `jmap -histo:live` will.

Problem

We know that jmap -histo:live triggers a full gc in order to determine live objects: Does jmap force garbage collection when the live option is used? Since jmap -histo considers all objects in the heap (those in the young and old generation), my point is, jmap -histo can also trigger a full gc, too. However, I could not encounter a solid documentation about whether jmap -histo may trigger a full gc or not. Can jmap -histo trigger full garbage collection?

Original source

Related problems