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

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

      <bdo id='m6IP6'></bdo><ul id='m6IP6'></ul>
    <tfoot id='m6IP6'></tfoot>

    1. <i id='m6IP6'><tr id='m6IP6'><dt id='m6IP6'><q id='m6IP6'><span id='m6IP6'><b id='m6IP6'><form id='m6IP6'><ins id='m6IP6'></ins><ul id='m6IP6'></ul><sub id='m6IP6'></sub></form><legend id='m6IP6'></legend><bdo id='m6IP6'><pre id='m6IP6'><center id='m6IP6'></center></pre></bdo></b><th id='m6IP6'></th></span></q></dt></tr></i><div id='m6IP6'><tfoot id='m6IP6'></tfoot><dl id='m6IP6'><fieldset id='m6IP6'></fieldset></dl></div>
    2. 如何使 JVM 崩溃?

      How do you crash a JVM?(如何使 JVM 崩溃?)

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

            <legend id='JIG5l'><style id='JIG5l'><dir id='JIG5l'><q id='JIG5l'></q></dir></style></legend>
            <tfoot id='JIG5l'></tfoot>

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

              <tbody id='JIG5l'></tbody>

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

                本文介绍了如何使 JVM 崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在阅读一本关于编程技巧的书,其中作者问受访者,你如何使 JVM 崩溃?"我认为你可以通过编写一个最终会耗尽所有内存的无限 for 循环来做到这一点.

                I was reading a book on programming skills wherein the author asks the interviewee, "How do you crash a JVM?" I thought that you could do so by writing an infinite for-loop that would eventually use up all the memory.

                有人知道吗?

                推荐答案

                最接近单一答案"的是 System.exit(),它会立即终止 JVM,而无需进行适当的清理.但除此之外,本机代码和资源耗尽是最有可能的答案.或者,您可以在 Sun 的错误跟踪器上查找您的 JVM 版本中的错误,其中一些允许可重复的崩溃场景.在 32 位版本(我们现在通常使用 64 位)下接近 4 Gb 内存限制时,我们过去常常会出现半定期崩溃.

                The closest thing to a single "answer" is System.exit() which terminates the JVM immediately without proper cleanup. But apart from that, native code and resource exhaustion are the most likely answers. Alternatively you can go looking on Sun's bug tracker for bugs in your version of the JVM, some of which allow for repeatable crash scenarios. We used to get semi-regular crashes when approaching the 4 Gb memory limit under the 32-bit versions (we generally use 64-bit now).

                这篇关于如何使 JVM 崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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='odnlJ'><style id='odnlJ'><dir id='odnlJ'><q id='odnlJ'></q></dir></style></legend>
                  <tbody id='odnlJ'></tbody>

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

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