本文介绍了显示为XX:ParallelGCThreads选择的默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调整Java 8的JVM,并且试图知道为参数-XX:ParallelGCThreads定义了什么值. 文档说:

I'm tuning the JVM of Java 8 and I'm trying to know what value was defined for the parameter -XX:ParallelGCThreads. The documentation says:

我想知道我的平台中定义了什么值,以及是否需要更改它.在这种环境下,我没有可用的JDK,只有JRE.

I would like to know what value was defined in my platform and if I need to change that. I don't have in this environment a JDK available, only the JRE.

推荐答案

默认值:

 java -XX:+PrintFlagsFinal | grep ParallelGCThreads
 uint  ParallelGCThreads                        = 4

如果您有一个正在运行的进程jinfo <processId>,如果输出中不存在该进程,则该进程将使用默认值(在VM Flags下查看)

If you have a running process jinfo <processId>, if it's not present in the output, it is using the default value (look under VM Flags)

这篇关于显示为XX:ParallelGCThreads选择的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 06:39