使用UseCompressedOops?

问题描述 投票:0回答:1

我在应用程序从 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 吗?

java jvm-hotspot jvm-arguments
1个回答
0
投票

那么我需要为我的应用程序传递 UseCompressedOops 吗?

没有。

事实上,这是行不通的。压缩 Oops 仅适用于小于 32Gb 的堆大小。

有关更多信息,请阅读 https://www.baeldung.com/jvm-compressed-oops

© www.soinside.com 2019 - 2024. All rights reserved.