Commit 92ca7647 authored by Spencer.Chang's avatar Spencer.Chang

修改JAVA_OPTS为CATALINA_OPTS

parent 8dc9430a
......@@ -22,12 +22,12 @@ tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
* Linux 修改 `catalina.sh` ,开始处添加
```bash
JAVA_OPTS='-Xms512m -Xmx2048m'
CATALINA_OPTS='-Xms512m -Xmx2048m'
```
* Windows 修改 `catalina.bat`
```bash
set JAVA_OPTS=-Xms512m -Xmx2048m
set CATALINA_OPTS=-Xms512m -Xmx2048m
```
### 3. 启用远程 JMX 连接
......@@ -35,11 +35,11 @@ tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
修改 catalina.sh , 搜索 `[ "$1" = "start" ]` , 在下方添加
```bash
JAVA_OPTS="-Dcom.sun.management.jmxremote \
CATALINA_OPTS="-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=1099 \
-Djava.rmi.server.hostname=192.168.1.111 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false $JAVA_OPTS"
-Dcom.sun.management.jmxremote.authenticate=false $CATALINA_OPTS"
```
> linux 系统可以用 `` `hostname -i` `` 获取 ip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment