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

    2. <legend id='EoXTS'><style id='EoXTS'><dir id='EoXTS'><q id='EoXTS'></q></dir></style></legend>
    3. <small id='EoXTS'></small><noframes id='EoXTS'>

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

      OpenJDK 与 Java HotspotVM

      OpenJDK vs Java HotspotVM(OpenJDK 与 Java HotspotVM)
          <tbody id='eiFrQ'></tbody>
        <legend id='eiFrQ'><style id='eiFrQ'><dir id='eiFrQ'><q id='eiFrQ'></q></dir></style></legend>
          • <small id='eiFrQ'></small><noframes id='eiFrQ'>

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

                <tfoot id='eiFrQ'></tfoot>

              1. 本文介绍了OpenJDK 与 Java HotspotVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                OpenJDK VM 和 Oracle Hotspot VM 仍然是两个不同的 JVM 吗?

                Are OpenJDK VM and Oracle Hotspot VM still two different JVMs?

                我似乎找不到任何关于 OpenJDK VM 的官方文档.甚至在 OpenJDK 主页上也有一个开发 HotSpot VM 的 HotSpot Group.

                I can't seem to find any somewhat official documentation on anything about OpenJDK VM. Even in OpenJDK homepage there is an HotSpot Group which develops HotSpot VM.

                HotSpot 小组由参与 HotSpot 虚拟机的设计、实施和维护的开发人员组成

                The HotSpot group is comprised of developers involved in the design, implementation, and maintanence of the HotSpot virtual machine

                但是,如果我在我的 Windows 机器上检查 java -version 它会打印出来

                However if I check java -version on my Windows machine it prints out

                Java HotSpot(TM) 64 位服务器虚拟机

                Java HotSpot(TM) 64-Bit Server VM

                但是在我的 Ubuntu VPS 上

                But on my Ubuntu VPS

                OpenJDK 64 位服务器虚拟机

                OpenJDK 64-Bit Server VM

                如果这是两个不同的虚拟机,它们之间的主要区别是什么?它们有不同的运行时标志集吗?

                If those are two different VMs what are the main differences between them? Do they have different runtime flag sets?

                推荐答案

                Oracle HotSpot JVM 基于 OpenJDK HotSpot 项目.因此,它们大多是相同的 VM,除了 Oracle JVM 有一些额外的商业特性,主要是 Java 飞行记录器,应用类数据共享和协同内存管理.

                Oracle HotSpot JVM is based on OpenJDK HotSpot project. So, they are mostly the same VM, except that Oracle JVM has a few additional commercial features, mainly, Java Flight Recorder, Application Class Data Sharing and Cooperative Memory Management.

                两个虚拟机的运行时标志几乎相同;使用查看完整列表

                Runtime flags are almost the same for both VMs; see the complete list using

                -XX:+UnlockDiagnosticVMOptions -XX:+UnlockCommercialFeatures -XX:+PrintFlagsFinal
                

                从 JDK 8u131 开始,唯一的区别在于以下标志(OpenJDK VM 中不存在):

                As of JDK 8u131, the only difference is in the following flags (absent in OpenJDK VM):

                 bool EnableResourceManagementTLABCache         = true         {product}
                 bool EnableSharedLookupCache                   = true         {product}
                 bool FlightRecorder                            = false        {commercial}
                ccstr FlightRecorderOptions                     =              {product}
                 bool LogCommercialFeatures                     = false        {product}
                ccstr MemoryRestriction                         = none         {commercial}
                 bool ResourceManagement                        = false        {commercial}
                 intx ResourceManagementSampleInterval          = -1           {commercial}
                ccstr StartFlightRecording                      =              {commercial}
                 bool TraceSharedLookupCache                    = false        {product}
                 bool UnlockCommercialFeatures                 := true         {commercial}
                 bool UseAppCDS                                 = false        {commercial}
                

                这篇关于OpenJDK 与 Java HotspotVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                Why a sawtooth shaped graph?(为什么是锯齿形图形?)

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

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

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