Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
92ca7647
Commit
92ca7647
authored
Jan 23, 2018
by
Spencer.Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改JAVA_OPTS为CATALINA_OPTS
parent
8dc9430a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
deployment.md
框架功能描述/deployment.md
+4
-4
No files found.
框架功能描述/deployment.md
View file @
92ca7647
...
...
@@ -22,12 +22,12 @@ tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
*
Linux 修改
`catalina.sh`
,开始处添加
```
bash
JAV
A_OPTS
=
'-Xms512m -Xmx2048m'
CATALIN
A_OPTS
=
'-Xms512m -Xmx2048m'
```
*
Windows 修改
`
catalina.bat
`
```
bash
set
JAV
A_OPTS
=
-Xms512m
-Xmx2048m
set
CATALIN
A_OPTS
=
-Xms512m
-Xmx2048m
```
### 3. 启用远程 JMX 连接
...
...
@@ -35,11 +35,11 @@ tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
修改 catalina.sh , 搜索
`
[
"
$1
"
=
"start"
]
`
, 在下方添加
```
bash
JAV
A_OPTS="-Dcom.sun.management.jmxremote
\
CATALIN
A_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 $
JAV
A_OPTS"
-Dcom.sun.management.jmxremote.authenticate=false $
CATALIN
A_OPTS"
```
> linux 系统可以用 `` `hostname -i` `` 获取 ip
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment