如何使用CLI检查standalone.conf中的Xmx,Xms和其他JVM值?
[standalone@localhost:9990 /] /core-service=platform-mbean/type=memory:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true)
{
"outcome" => "success",
"result" => {
"heap-memory-usage" => {
"init" => 3246391296L,
"used" => 381631592L,
"committed" => 3111124992L,
"max" => 3111124992L
},
"non-heap-memory-usage" => {
"init" => 2555904L,
"used" => 80962112L,
"committed" => 90963968L,
"max" => 1317011456L
},
"object-name" => "java.lang:type=Memory",
"object-pending-finalization-count" => 0,
"verbose" => true
}
}
我需要此值:JAVA_OPTS =“-Xms 3096m -Xmx 3096m -XX:MetaspaceSize = 256m -XX:MaxMetaspaceSize = 512m -Djava.net.preferIPv4Stack = true“
谢谢!
你不能。这些位于配置目录之外的文件是本机批处理类型文件。这就是为什么有standalone.conf
和standalone.conf.bat
的原因-它们取决于O / S。 CLI与作为操作系统独立配置的standalone.xml
(或其他独立配置文件)进行交互。