i want to try CompressedOops on my JVM. No I wonder if it might be enabled by default. I run this jvm on debian/squeeze:
我想在我的JVM上尝试CompressedOops。不,我想知道它是否可以默认启用。我在debian / squeeze上运行这个jvm:
$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
Some people say it is enabled by default, some say it is not:
有人说它默认启用,有人说它不是:
from: http://forums.yourkit.com/viewtopic.php?f=3&t=3185
Yes, you are right, I also checked it and Compressed Oops is not activated by default in Java6u21 64-bit, I do not understand why it said so in the links I provided.
是的,你是对的,我也检查了它,并且在646位Java6u21中默认没有激活Compressed Oops,我不明白为什么它在我提供的链接中这么说。
I tried to check it with jconsole/JMX but had no luck to find an attribute named CompressedOops or alike.
我尝试用jconsole / JMX检查它,但没有运气找到名为CompressedOops或类似的属性。
Does anybody know where i get a list of all jvm options for a specific build with their default values?
有没有人知道我在哪里获得具有默认值的特定构建的所有jvm选项的列表?
regards Janning
1 个解决方案
#1
57
You can run with -XX:+PrintFlagsFinal
to print the values of all flags at startup of the JVM.
您可以使用-XX:+ PrintFlagsFinal运行以在JVM启动时打印所有标志的值。
Alternatively, you can use the jinfo
tool to check the value of a flag in a running JVM:
或者,您可以使用jinfo工具检查正在运行的JVM中的标志值:
> jinfo -flag UseCompressedOops 7364
-XX:+UseCompressedOops
Use jps
to find the pid of the process.
使用jps查找进程的pid。
#1
57
You can run with -XX:+PrintFlagsFinal
to print the values of all flags at startup of the JVM.
您可以使用-XX:+ PrintFlagsFinal运行以在JVM启动时打印所有标志的值。
Alternatively, you can use the jinfo
tool to check the value of a flag in a running JVM:
或者,您可以使用jinfo工具检查正在运行的JVM中的标志值:
> jinfo -flag UseCompressedOops 7364
-XX:+UseCompressedOops
Use jps
to find the pid of the process.
使用jps查找进程的pid。