我正在尝试查找有关在 Weblogic Server 启动中使用 -server 标志的说明。
我没有找到任何关于 -server 是否应该或是否强制成为 Java 选项的第一个参数的文档。
示例:
java -server -Xms256m -Xmx512m
或者
java -Dweblogic.ProductionModeEnabled=true -server -Xms256m -Xmx512m
我对这个问题感到抱歉,但我没有具体答案。
最佳答案
对于您的场景,这并不重要。它需要位于“-jar filename
”和任何参数之前。 -server
是一个选项,因此只需转到应出现在“-jar filename
”之前的选项列表中的任何位置,如 the documentation states ,格式为:
java [options] classname [args]
java [options] -jar filename [args]
还应该注意的是,-server
选项在 64 位(基于 OpenJDK)JVM 中是默认选项。此引用来自同一页面:
-server
Selects the Java HotSpot Server VM. The 64-bit version of the JDK supports only the Server VM, so in that case the option is implicit.For default JVM selection, see Server-Class Machine Detection at http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html
关于java - 在内存定义之前或之后使用标志 -server 引导 Weblogic Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41553557/