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

    2. <small id='l3eRP'></small><noframes id='l3eRP'>

      在 Java 中是否收集了永久代空间垃圾?

      In Java is Permanent Generation space garbage collected?(在 Java 中是否收集了永久代空间垃圾?)

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

        <tbody id='KUPB8'></tbody>

        1. <tfoot id='KUPB8'></tfoot>
            <bdo id='KUPB8'></bdo><ul id='KUPB8'></ul>
          • <legend id='KUPB8'><style id='KUPB8'><dir id='KUPB8'><q id='KUPB8'></q></dir></style></legend>

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

              • 本文介绍了在 Java 中是否收集了永久代空间垃圾?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我已经读到 Perm gen(或 Permanent Generation)空间不是垃圾收集的.但是,在 CMS 集合中,我可以在 GC 日志中看到一些类正在卸载.那么 perm gen 垃圾是在完全收集还是 CMS 收集期间收集的?

                I have read that Perm gen (or Permanent Generation) space is not garbage collected. However, in CMS collection I can see some classes unloading in my GC log. So is perm gen garbage collected during full collection or CMS collection?

                推荐答案

                PermGen 像堆的其他部分一样被垃圾收集.

                The PermGen is garbage collected like the other parts of the heap.

                这里要注意的是,PermGen 包含类和对象的元数据,即指向分配对象的堆的其余部分的指针.PermGen 还包含在使用结束时必须手动销毁的类加载器,否则它们会保留在内存中并保持对堆上对象的引用.Jon Masamitsu 在 Sun/Oracle 博客网站上的 "Presenting the Permanent Generation" 文章可能帮助你.

                The thing to note here is that the PermGen contains meta-data of the classes and the objects i.e. pointers into the rest of the heap where the objects are allocated. The PermGen also contains Class-loaders which have to be manually destroyed at the end of their use else they stay in memory and also keep holding references to their objects on the heap. The "Presenting the Permanent Generation" article by Jon Masamitsu on the Sun / Oracle blog site might help you.

                这篇关于在 Java 中是否收集了永久代空间垃圾?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Maven JAVA_HOME environment variable is not defined correctly, but it is(Maven JAVA_HOME 环境变量未正确定义,但它是)
                Java System Environment Variable(Java 系统环境变量)
                Java -classpath option(Java -classpath 选项)
                Read environment variable in SpringBoot(在 SpringBoot 中读取环境变量)
                Tomcat 8 - context.xml use Environment Variable in Datasource(Tomcat 8 - context.xml 在数据源中使用环境变量)
                Issue with JAVA_HOME(JAVA_HOME 的问题)

              • <tfoot id='dvwia'></tfoot>

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

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

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