tomcat中Catalina里的JAVA_OPTS和CATALINA_OPTS区别

tomcat中Catalina里的JAVA_OPTS和CATALINA_OPTS区别

export JAVA_OPTS="-Dfile.encoding=utf-8"

If you start Tomcat after exporting JAVA_OPTS, it will make sure to use UTF-8 encoding for all file
reads, but this behavior will not be restricted to Tomcat’s Java process only, but to all JVM processes
running on the same machine.

export CATALINA_OPTS=" –Xms256m -Xmx1g -XX:MaxPermSize=256m"

To pass specific JVM arguments to Tomcat only, you can use the CATALINA_OPTS environment
variable. A typical scenario is adding more heap memory to the Tomcat process, without affecting the
memory settings of other Java applications

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值