What are ReservedCodeCacheSize and InitialCodeCacheSize?

后端 未结 4 831
你的背包
你的背包 2020-11-29 18:56

Can someone please explain what the JVM option ReservedCodeCacheSize and InitialCodeCacheSize are? Specifically when/why would I want to change it?

4条回答
  •  隐瞒了意图╮
    2020-11-29 19:27

    A good learning experience from Indeed engineering team and challenges they faced when migrating to jdk 8.

    http://engineering.indeedblog.com/blog/2016/09/job-search-web-app-java-8-migration/

    Conclusion : Jdk 8 needs more code cache han JDK 7

    The default codecache size for JRE 8 is about 250MB, about five times larger than the 48MB default for JRE 7. Our experience is that JRE 8 needs that extra codecache. We have switched about ten services to JRE 8 so far, and all of them use about four times more codecache than before.

提交回复
热议问题