我在应用程序从 32GB 内存切换到 64GB 内存时发现一些性能问题。
我进行了以下配置:
java.arg.2=-Xms14g java.arg.3=-Xmx54g
从这里
Compressed oops is supported and enabled by default in Java SE 6u23 and later. In Java SE 7, use of compressed oops is the default for 64-bit JVM processes when -Xmx isn't specified and for values of -Xmx less than 32 gigabytes. For JDK 6 before the 6u23 release, use the -XX:+UseCompressedOops flag with the java command to enable the feature.
那么我需要为我的应用程序传递 UseCompressedOops 吗?
那么我需要为我的应用程序传递 UseCompressedOops 吗?
没有。
事实上,这是行不通的。压缩 Oops 仅适用于小于 32Gb 的堆大小。
有关更多信息,请阅读 https://www.baeldung.com/jvm-compressed-oops