gpt4 book ai didi

java - 为 Tomcat 添加 RAM

转载 作者:行者123 更新时间:2023-11-28 22:06:41 26 4
gpt4 key购买 nike

我应该使用哪个环境变量来为 Tomcat 添加更多 RAM?

JAVA_OPTS="-Xmx1024m -Xms256m"

CATALINA_OPTS="-Xmx1024m -Xms256m"?

最佳答案

两者都行。然而,来自skill-guru ...

Note that CATALINA_OPTS is a better place than JAVA_OPTS. The former is only used when actually starting the Tomcat instance. JAVA_OPTS is also used to start JVMs that only interact with Tomcat (for example the JVM instance that is used to send the shutdown-message to a running Tomcat instance).

关于java - 为 Tomcat 添加 RAM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15843019/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com