我从以下答案中得到了 JVM 参数列表https://stackoverflow.com/a/35108974/7809534 https://stackoverflow.com/a/35108974/7809534:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
我想在 docker-compose 中运行它们。
这是我尝试过的:
environment:
- JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote"
- JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote.port=9010"
- JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote.local.only=false"
- JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote.authenticate=false"
- JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote.ssl=false"
但它不起作用。
我该怎么做?
最终,我设法找到了解决方案。
这里是:
environment:
- JAVA_TOOL_OPTIONS=
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)