• <i id='H49KV'><tr id='H49KV'><dt id='H49KV'><q id='H49KV'><span id='H49KV'><b id='H49KV'><form id='H49KV'><ins id='H49KV'></ins><ul id='H49KV'></ul><sub id='H49KV'></sub></form><legend id='H49KV'></legend><bdo id='H49KV'><pre id='H49KV'><center id='H49KV'></center></pre></bdo></b><th id='H49KV'></th></span></q></dt></tr></i><div id='H49KV'><tfoot id='H49KV'></tfoot><dl id='H49KV'><fieldset id='H49KV'></fieldset></dl></div>
    <tfoot id='H49KV'></tfoot>

    1. <small id='H49KV'></small><noframes id='H49KV'>

      <legend id='H49KV'><style id='H49KV'><dir id='H49KV'><q id='H49KV'></q></dir></style></legend>

        • <bdo id='H49KV'></bdo><ul id='H49KV'></ul>

        ReservedCodeCacheSize 和 InitialCodeCacheSize 是什么?

        What are ReservedCodeCacheSize and InitialCodeCacheSize?(ReservedCodeCacheSize 和 InitialCodeCacheSize 是什么?)
        <legend id='svgWX'><style id='svgWX'><dir id='svgWX'><q id='svgWX'></q></dir></style></legend>
      1. <small id='svgWX'></small><noframes id='svgWX'>

          <tfoot id='svgWX'></tfoot>
          • <bdo id='svgWX'></bdo><ul id='svgWX'></ul>

            1. <i id='svgWX'><tr id='svgWX'><dt id='svgWX'><q id='svgWX'><span id='svgWX'><b id='svgWX'><form id='svgWX'><ins id='svgWX'></ins><ul id='svgWX'></ul><sub id='svgWX'></sub></form><legend id='svgWX'></legend><bdo id='svgWX'><pre id='svgWX'><center id='svgWX'></center></pre></bdo></b><th id='svgWX'></th></span></q></dt></tr></i><div id='svgWX'><tfoot id='svgWX'></tfoot><dl id='svgWX'><fieldset id='svgWX'></fieldset></dl></div>
                <tbody id='svgWX'></tbody>
                • 本文介绍了ReservedCodeCacheSize 和 InitialCodeCacheSize 是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  谁能解释一下JVM选项 ReservedCodeCacheSizeInitialCodeCacheSize 是什么?具体来说,我何时/为什么要更改它?如何确定合适的尺寸?

                  Can someone please explain what the JVM option ReservedCodeCacheSize and InitialCodeCacheSize are? Specifically when/why would I want to change it? How do I decide what the right size is?

                  这是文档所说的:

                  -XX:ReservedCodeCacheSize=32m 保留代码缓存大小(以字节为单位)- 最大代码缓存大小.[Solaris 64 位、amd64 和 -server x86:2048m;在 1.5.0_06 及更早版本中,Solaris 64 位和 and64:1024m.]

                  -XX:ReservedCodeCacheSize=32m Reserved code cache size (in bytes) - maximum code cache size. [Solaris 64-bit, amd64, and -server x86: 2048m; in 1.5.0_06 and earlier, Solaris 64-bit and and64: 1024m.]

                  推荐答案

                  ReservedCodeCacheSize(和 InitialCodeCacheSize)是(即时)编译器的一个选项Java 热点虚拟机.基本上它设置编译器代码缓存的最大大小.

                  ReservedCodeCacheSize (and InitialCodeCacheSize) is an option for the (just-in-time) compiler of the Java Hotspot VM. Basically it sets the maximum size for the compiler's code cache.

                  缓存可能已满,这会导致如下警告:

                  The cache can become full, which results in warnings like the following:

                  Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
                  Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
                  Code Cache  [0x000000010958f000, 0x000000010c52f000, 0x000000010c58f000)
                   total_blobs=15406 nmethods=14989 adapters=362 free_code_cache=835Kb largest_free_block=449792
                  

                  当出现 Java HotSpot(TM) Client VM 警告:异常 java.lang.OutOfMemoryError 将信号 SIGINT 分派给处理程序时,情况会更糟——VM 可能需要强制终止.

                  何时设置此选项?

                  1. 当热点编译器失败时
                  2. 减少 JVM 所需的内存(因此有 JIT 编译器失败的风险)

                  通常您不会更改此值.我认为默认值非常平衡,因为这个问题仅在极少数情况下发生(根据我的经验).

                  Normally you'd not change this value. I think the default values are quite good balanced because this problems occur on very rare occasions only (in my experince).

                  这篇关于ReservedCodeCacheSize 和 InitialCodeCacheSize 是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                • <legend id='jWGij'><style id='jWGij'><dir id='jWGij'><q id='jWGij'></q></dir></style></legend>

                      <i id='jWGij'><tr id='jWGij'><dt id='jWGij'><q id='jWGij'><span id='jWGij'><b id='jWGij'><form id='jWGij'><ins id='jWGij'></ins><ul id='jWGij'></ul><sub id='jWGij'></sub></form><legend id='jWGij'></legend><bdo id='jWGij'><pre id='jWGij'><center id='jWGij'></center></pre></bdo></b><th id='jWGij'></th></span></q></dt></tr></i><div id='jWGij'><tfoot id='jWGij'></tfoot><dl id='jWGij'><fieldset id='jWGij'></fieldset></dl></div>
                        <bdo id='jWGij'></bdo><ul id='jWGij'></ul>
                      • <tfoot id='jWGij'></tfoot>

                      • <small id='jWGij'></small><noframes id='jWGij'>

                              <tbody id='jWGij'></tbody>