<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #### DirectMemory溢出 DirectMemory容量可通過-XX:MaxDirectMemorySize指定,如果不指定則默認與JAVA堆最大值\(-Xmx\)一樣 ``` package com.quancheng.jvm.oom; import java.lang.reflect.Field; import sun.misc.Unsafe; // -Xmx20M -XX:MaxDirectMemorySize=10M public class DirectMemoryTest { public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException { Field field = sun.misc.Unsafe.class.getDeclaredFields()[0]; field.setAccessible(true); sun.misc.Unsafe unsafe = (Unsafe) field.get(null); while (true) { unsafe.allocateMemory(64 * 1024 * 1024); } } } output============================================ java(16010,0x700002d01000) malloc: *** mach_vm_map(size=67108864) failed (error code=3) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Exception in thread "main" java.lang.OutOfMemoryError at sun.misc.Unsafe.allocateMemory(Native Method) at com.quancheng.jvm.oom.DirectMemoryTest.main(DirectMemoryTest.java:15) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看