Java G1 garbage collection in production

后端 未结 16 1887
借酒劲吻你
借酒劲吻你 2020-11-28 18:41

Since Java 7 is going to use the new G1 garbage collection by default is Java going to be able to handle an order of magnitude larger heap without supposed \"devastating\" G

16条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 19:11

    G1 GC is supposed to work better. But if setting -XX:MaxGCPauseMillis too aggressively, garbage will be collecting too slowly. And that's why full GC triggered in David Leppik's example.

提交回复
热议问题