jmap -histo可以触发完整的垃圾回收吗? [英] Can jmap -histo trigger full garbage collection?

查看:100
本文介绍了jmap -histo可以触发完整的垃圾回收吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道jmap -histo:live会触发一个完整的gc以确定活动对象:

We know that jmap -histo:live triggers a full gc in order to determine live objects:

在发生以下情况时,jmap会强制进行垃圾收集吗?使用实时选项吗?

因为jmap -histo考虑了堆中的所有对象(年轻一代和老一代中的那些对象),所以我的意思是,jmap -histo也可以触发完整的gc.但是,我找不到关于jmap -histo是否可以触发完整gc的可靠文档.

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.

jmap -histo可以触发完整的垃圾回收吗?

Can jmap -histo trigger full garbage collection?

推荐答案

jmap -histo触发完整的gc,但是jmap -histo:live将会触发.

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

这篇关于jmap -histo可以触发完整的垃圾回收吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆