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

  1. <legend id='kMaFk'><style id='kMaFk'><dir id='kMaFk'><q id='kMaFk'></q></dir></style></legend>
    <tfoot id='kMaFk'></tfoot>

    <small id='kMaFk'></small><noframes id='kMaFk'>

        <bdo id='kMaFk'></bdo><ul id='kMaFk'></ul>

      CompressedClassSpaceSize 区域是否包含 MaxMetaspaceSize 区域?

      Is CompressedClassSpaceSize area contains MaxMetaspaceSize area?(CompressedClassSpaceSize 区域是否包含 MaxMetaspaceSize 区域?)

      <small id='Xo4uL'></small><noframes id='Xo4uL'>

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

              1. 本文介绍了CompressedClassSpaceSize 区域是否包含 MaxMetaspaceSize 区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                什么是CompressedClassSpaceSize?

                CompressedClassSpaceSizeMetaspaceSize是什么关系?

                推荐答案

                Metaspace 是用于存储类元数据的内存区域 - 解析 .class 文件时创建的内部 JVM 结构.

                Metaspace is the memory area for storing class metadata - internal JVM structures created while parsing .class files.

                类元数据包括:

                • Java 类的内部表示
                • 方法及其字节码
                • 字段描述符
                • 恒定池
                • 符号
                • 注释
                • 等等

                -XX:MaxMetaspaceSize默认无限制.

                -XX:+UseCompressedClassPointers 选项为 ON(堆 <32G 的默认值)时,类从 Metaspace 移动到称为 Compressed Class Space 的单独区域.这是为了允许使用 32 位值而不是 64 位来寻址 VM 类结构.

                When -XX:+UseCompressedClassPointers option is ON (default for heaps < 32G), classes are moved from Metaspace to the separate area called Compressed Class Space. This is to allow addressing VM class structures with 32-bit values instead of 64-bit.

                因此,Compressed Class Space 包含 Java 类的内部表示,而 Metaspace 包含所有其他元数据:方法、常量池、注释等.

                So, Compressed Class Space contains internal representation of Java classes, while Metaspace holds all the rest metadata: methods, constant pools, annotations, etc.

                Compressed Class Space的大小受-XX:CompressedClassSpaceSize限制,默认为1G.-XX:CompressedClassSpaceSize的最大可能值为3G.

                The size of Compressed Class Space is limited by -XX:CompressedClassSpaceSize, which is 1G by default. The maximum possible value of -XX:CompressedClassSpaceSize is 3G.

                非类元空间和压缩类空间是两个不相交的区域.MaxMetaspaceSize 限制两个区域的提交大小:

                Non-class Metaspace and Compressed Class Space are two disjoint areas. MaxMetaspaceSize limits the committed size of both areas:

                committed(Non-class Metaspace) + committed(Compressed Class Space) <= MaxMetaspaceSize
                

                如果MaxMetaspaceSize设置小于CompressedClassSpaceSize,后者自动减小到

                If MaxMetaspaceSize is set smaller than CompressedClassSpaceSize, the latter is automatically decreased to

                CompressedClassSpaceSize = MaxMetaspaceSize - 2*InitialBootClassLoaderMetaspaceSize
                

                这篇关于CompressedClassSpaceSize 区域是否包含 MaxMetaspaceSize 区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 中的默认语言环境设置以使其保持一致?)

                    <bdo id='H2Y3V'></bdo><ul id='H2Y3V'></ul>

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

                  • <legend id='H2Y3V'><style id='H2Y3V'><dir id='H2Y3V'><q id='H2Y3V'></q></dir></style></legend>

                    <small id='H2Y3V'></small><noframes id='H2Y3V'>

                        <tfoot id='H2Y3V'></tfoot>