如何使用CLI从standalone.conf中读取Xmx和Xms值?

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

如何使用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“

谢谢!

jboss jvm jboss7.x
1个回答
0
投票

你不能。这些位于配置目录之外的文件是本机批处理类型文件。这就是为什么有standalone.confstandalone.conf.bat的原因-它们取决于O / S。 CLI与作为操作系统独立配置的standalone.xml(或其他独立配置文件)进行交互。

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