• <bdo id='Sngc5'></bdo><ul id='Sngc5'></ul>
      <legend id='Sngc5'><style id='Sngc5'><dir id='Sngc5'><q id='Sngc5'></q></dir></style></legend>

    1. <tfoot id='Sngc5'></tfoot>

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

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

        -XX:MaxPermSize 有什么作用?

        What does -XX:MaxPermSize do?(-XX:MaxPermSize 有什么作用?)
        • <small id='mWJPk'></small><noframes id='mWJPk'>

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

                  <tfoot id='mWJPk'></tfoot>

                  本文介绍了-XX:MaxPermSize 有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  具体来说,为什么它有助于解决 PermGen OutOfMemoryError 问题?

                  Specifically, why would it help to fix a PermGen OutOfMemoryError issue?

                  另外,如果答案指向我关于 JVM 参数的文档...

                  Also, bonus points for an answer that points me to the documentation on JVM arguments...

                  推荐答案

                  永久空间是 VM 使用的类、方法、内部化字符串和类似对象的存储位置,并且永远不会被释放(因此得名).

                  The permanent space is where the classes, methods, internalized strings, and similar objects used by the VM are stored and never deallocated (hence the name).

                  这篇 Oracle 文章简洁地介绍了HotSpot GC 的工作和参数化,并建议您在加载许多类时增加此空间(这通常是应用程序服务器和某些 IDE 等 Eclipse 的情况):

                  This Oracle article succinctly presents the working and parameterization of the HotSpot GC and advises you to augment this space if you load many classes (this is typically the case for application servers and some IDE like Eclipse) :

                  永久代对垃圾没有明显影响大多数应用程序的收集器性能.然而,有些应用程序动态生成和加载许多类;例如,JavaServer Pages (JSP) 页面的一些实现.这些应用程序可能需要更大的永久代来持有额外的课程.如果是这样,最大永久代大小可以使用命令行选项 -XX:MaxPermSize= 增加.

                  The permanent generation does not have a noticeable impact on garbage collector performance for most applications. However, some applications dynamically generate and load many classes; for example, some implementations of JavaServer Pages (JSP) pages. These applications may need a larger permanent generation to hold the additional classes. If so, the maximum permanent generation size can be increased with the command-line option -XX:MaxPermSize=.

                  请注意,其他 Oracle 文档列出其他 HotSpot 参数.

                  Note that this other Oracle documentation lists the other HotSpot arguments.

                  更新:从 Java 8 开始,permgen 空间和此设置都消失了.用于加载的类和方法的内存模型是不同的,并且不受限制(使用默认设置).您应该不会再看到此错误.

                  Update : Starting with Java 8, both the permgen space and this setting are gone. The memory model used for loaded classes and methods is different and isn't limited (with default settings). You should not see this error any more.

                  这篇关于-XX:MaxPermSize 有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

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

                        <tbody id='9tHWr'></tbody>

                      <small id='9tHWr'></small><noframes id='9tHWr'>

                    1. <tfoot id='9tHWr'></tfoot>
                    2. <legend id='9tHWr'><style id='9tHWr'><dir id='9tHWr'><q id='9tHWr'></q></dir></style></legend>
                      <i id='9tHWr'><tr id='9tHWr'><dt id='9tHWr'><q id='9tHWr'><span id='9tHWr'><b id='9tHWr'><form id='9tHWr'><ins id='9tHWr'></ins><ul id='9tHWr'></ul><sub id='9tHWr'></sub></form><legend id='9tHWr'></legend><bdo id='9tHWr'><pre id='9tHWr'><center id='9tHWr'></center></pre></bdo></b><th id='9tHWr'></th></span></q></dt></tr></i><div id='9tHWr'><tfoot id='9tHWr'></tfoot><dl id='9tHWr'><fieldset id='9tHWr'></fieldset></dl></div>
                            <bdo id='9tHWr'></bdo><ul id='9tHWr'></ul>