What triggers a full garbage collection in Java?

前端 未结 2 1904
深忆病人
深忆病人 2020-12-02 19:02

I\'m wondering what are the exact situations that trigger Full Garbage Collection in Java.

The obvious ones are:

  • Running out of old gen
  • Runnin
2条回答
  •  死守一世寂寞
    2020-12-02 19:38

    This greatly depends on your jvm options and the jvm that you at using.

    For this reason, I recommend that you look at the book "Java Performance" bý John and Hunt.

提交回复
热议问题