Setting -XX:+DisableExplicitGC in production: what could go wrong?

前端 未结 3 1426
一个人的身影
一个人的身影 2020-12-08 09:48

we just had a meeting to address some performance issues in a web application that is used to calculate insurance rates. The calculations are implemented in a C/C++-module,

3条回答
  •  不知归路
    2020-12-08 10:19

    If you use -XX:+DisableExplicitGC and use CMS, you might want to use -XX:+CMSClassUnloadingEnabled as well to limit another reason for full GCs (i.e. the PermGen being full). Other than that, I haven't had problems using the option, though I've switched to using -XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses, because my only cause of explicit GCs was RMI, not application code.

提交回复
热议问题