1、端口更改:找到config目录下server.xml文件 如下

  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9.  
  10. http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. -->
  18. <!-- Note: A "Server" is not itself a "Container", so you may not
  19. define subcomponents such as "Valves" at this level.
  20. Documentation at /docs/config/server.html
  21. -->
  22. <Server port="" shutdown="SHUTDOWN">
  23. <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  24. <!-- Security listener. Documentation at /docs/config/listeners.html
  25. <Listener className="org.apache.catalina.security.SecurityListener" />
  26. -->
  27. <!--APR library loader. Documentation at /docs/apr.html -->
  28. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  29. <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  30. <Listener className="org.apache.catalina.core.JasperListener" />
  31. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  32. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  33. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  34. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  35.  
  36. <!-- Global JNDI resources
  37. Documentation at /docs/jndi-resources-howto.html
  38. -->
  39. <GlobalNamingResources>
  40. <!-- Editable user database that can also be used by
  41. UserDatabaseRealm to authenticate users
  42. -->
  43. <Resource name="UserDatabase" auth="Container"
  44. type="org.apache.catalina.UserDatabase"
  45. description="User database that can be updated and saved"
  46. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  47. pathname="conf/tomcat-users.xml" />
  48. </GlobalNamingResources>
  49.  
  50. <!-- A "Service" is a collection of one or more "Connectors" that share
  51. a single "Container" Note: A "Service" is not itself a "Container",
  52. so you may not define subcomponents such as "Valves" at this level.
  53. Documentation at /docs/config/service.html
  54. -->
  55. <Service name="Catalina">
  56.  
  57. <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  58. <!--
  59. <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  60. maxThreads="" minSpareThreads=""/>
  61. -->
  62.  
  63. <!-- A "Connector" represents an endpoint by which requests are received
  64. and responses are returned. Documentation at :
  65. Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  66. Java AJP Connector: /docs/config/ajp.html
  67. APR (HTTP/AJP) Connector: /docs/apr.html
  68. Define a non-SSL HTTP/1.1 Connector on port
  69. -->
  70. <Connector port="8080" protocol="HTTP/1.1" maxHttpHeaderSize="8192"
  71. connectionTimeout="20000"
  72. redirectPort="8443" URIEncoding="UTF-8"/>
  73. <!-- A "Connector" using the shared thread pool-->
  74. <!--
  75. <Connector executor="tomcatThreadPool"
  76. port="8080" protocol="HTTP/1.1"
  77. connectionTimeout="20000"
  78. redirectPort="8443" URIEncoding="UTF-8"/>
  79. -->
  80. <!-- Define a SSL HTTP/1.1 Connector on port
  81. This connector uses the BIO implementation that requires the JSSE
  82. style configuration. When using the APR/native implementation, the
  83. OpenSSL style configuration is required as described in the APR/native
  84. documentation -->
  85. <!--
  86. <Connector port="" protocol="org.apache.coyote.http11.Http11Protocol"
  87. maxThreads="" SSLEnabled="true" scheme="https" secure="true"
  88. clientAuth="false" sslProtocol="TLS" />
  89. -->
  90.  
  91. <!-- Define an AJP 1.3 Connector on port -->
  92. <Connector port="" protocol="AJP/1.3" redirectPort="" />
  93.  
  94. <!-- An Engine represents the entry point (within Catalina) that processes
  95. every request. The Engine implementation for Tomcat stand alone
  96. analyzes the HTTP headers included with the request, and passes them
  97. on to the appropriate Host (virtual host).
  98. Documentation at /docs/config/engine.html -->
  99.  
  100. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  101. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  102. -->
  103. <Engine name="Catalina" defaultHost="localhost">
  104.  
  105. <!--For clustering, please take a look at documentation at:
  106. /docs/cluster-howto.html (simple how to)
  107. /docs/config/cluster.html (reference documentation) -->
  108. <!--
  109. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  110. -->
  111.  
  112. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  113. via a brute-force attack -->
  114. <Realm className="org.apache.catalina.realm.LockOutRealm">
  115. <!-- This Realm uses the UserDatabase configured in the global JNDI
  116. resources under the key "UserDatabase". Any edits
  117. that are performed against this UserDatabase are immediately
  118. available for use by the Realm. -->
  119. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  120. resourceName="UserDatabase"/>
  121. </Realm>
  122.  
  123. <Host name="localhost" appBase="webapps"
  124. unpackWARs="true" autoDeploy="true">
  125.  
  126. <!-- SingleSignOn valve, share authentication between web applications
  127. Documentation at: /docs/config/valve.html -->
  128. <!--
  129. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  130. -->
  131.  
  132. <!-- Access log processes all example.
  133. Documentation at: /docs/config/valve.html
  134. Note: The pattern used is equivalent to using pattern="common" -->
  135. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  136. prefix="localhost_access_log." suffix=".txt"
  137. pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  138.  
  139. </Host>
  140. </Engine>
  141. </Service>
  142. </Server>

我们一般只需要改掉我标红的port就行了。

2、启动参数设置

找到tomcat的bin目录下catalina.bat文件 ,打开如下

  1. SET JAVA_HOME=..\..\jdk1.7.0_60x64
  2. SET JAVA_OPTS=-server -Xmx8g -Xms8g -XX:MaxPermSize=2048m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseConcMarkSweepGC -Xloggc:e:/JVM_GC_XXX_8080.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps
  3. @echo off
  4. rem Licensed to the Apache Software Foundation (ASF) under one or more
  5. rem contributor license agreements. See the NOTICE file distributed with
  6. rem this work for additional information regarding copyright ownership.
  7. rem The ASF licenses this file to You under the Apache License, Version 2.0
  8. rem (the "License"); you may not use this file except in compliance with
  9. rem the License. You may obtain a copy of the License at
  10. rem
  11. rem http://www.apache.org/licenses/LICENSE-2.0
  12. rem
  13. rem Unless required by applicable law or agreed to in writing, software
  14. rem distributed under the License is distributed on an "AS IS" BASIS,
  15. rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. rem See the License for the specific language governing permissions and
  17. rem limitations under the License.
  18.  
  19. rem ---------------------------------------------------------------------------
  20. rem Start/Stop Script for the CATALINA Server
  21. rem
  22. rem Environment Variable Prerequisites
  23. rem
  24. rem Do not set the variables in this script. Instead put them into a script
  25. rem setenv.bat in CATALINA_BASE/bin to keep your customizations separate.
  26. rem
  27. rem WHEN RUNNING TOMCAT AS A WINDOWS SERVICE:
  28. rem Note that the environment variables that affect the behavior of this
  29. rem script will have no effect at all on Windows Services. As such, any
  30. rem local customizations made in a CATALINA_BASE/bin/setenv.bat script
  31. rem will also have no effect on Tomcat when launched as a Windows Service.
  32. rem The configuration that controls Windows Services is stored in the Windows
  33. rem Registry, and is most conveniently maintained using the "tomcatXw.exe"
  34. rem maintenance utility, where "X" is the major version of Tomcat you are
  35. rem running.
  36. rem
  37. rem CATALINA_HOME May point at your Catalina "build" directory.
  38. rem
  39. rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
  40. rem of a Catalina installation. If not present, resolves to
  41. rem the same directory that CATALINA_HOME points to.
  42. rem
  43. rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
  44. rem "run" or "debug" command is executed.
  45. rem Include here and not in JAVA_OPTS all options, that should
  46. rem only be used by Tomcat itself, not by the stop process,
  47. rem the version command etc.
  48. rem Examples are heap size, GC logging, JMX ports etc.
  49. rem
  50. rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
  51. rem the JVM should use (java.io.tmpdir). Defaults to
  52. rem %CATALINA_BASE%\temp.
  53. rem
  54. rem JAVA_HOME Must point at your Java Development Kit installation.
  55. rem Required to run the with the "debug" argument.
  56. rem
  57. rem JRE_HOME Must point at your Java Runtime installation.
  58. rem Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
  59. rem are both set, JRE_HOME is used.
  60. rem
  61. rem JAVA_OPTS (Optional) Java runtime options used when any command
  62. rem is executed.
  63. rem Include here and not in CATALINA_OPTS all options, that
  64. rem should be used by Tomcat and also by the stop process,
  65. rem the version command etc.
  66. rem Most options should go into CATALINA_OPTS.
  67. rem
  68. rem JAVA_ENDORSED_DIRS (Optional) Lists of of semi-colon separated directories
  69. rem containing some jars in order to allow replacement of APIs
  70. rem created outside of the JCP (i.e. DOM and SAX from W3C).
  71. rem It can also be used to update the XML parser implementation.
  72. rem Defaults to $CATALINA_HOME/endorsed.
  73. rem
  74. rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
  75. rem command is executed. The default is "dt_socket".
  76. rem
  77. rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
  78. rem command is executed. The default is 8000.
  79. rem
  80. rem JPDA_SUSPEND (Optional) Java runtime options used when the "jpda start"
  81. rem command is executed. Specifies whether JVM should suspend
  82. rem execution immediately after startup. Default is "n".
  83. rem
  84. rem JPDA_OPTS (Optional) Java runtime options used when the "jpda start"
  85. rem command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
  86. rem and JPDA_SUSPEND are ignored. Thus, all required jpda
  87. rem options MUST be specified. The default is:
  88. rem
  89. rem -agentlib:jdwp=transport=%JPDA_TRANSPORT%,
  90. rem address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
  91. rem
  92. rem JSSE_OPTS (Optional) Java runtime options used to control the TLS
  93. rem implementation when JSSE is used. Default is:
  94. rem "-Djdk.tls.ephemeralDHKeySize=2048"
  95. rem
  96. rem LOGGING_CONFIG (Optional) Override Tomcat's logging config file
  97. rem Example (all one line)
  98. rem set LOGGING_CONFIG="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
  99. rem
  100. rem LOGGING_MANAGER (Optional) Override Tomcat's logging manager
  101. rem Example (all one line)
  102. rem set LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
  103. rem
  104. rem TITLE (Optional) Specify the title of Tomcat window. The default
  105. rem TITLE is Tomcat if it's not specified.
  106. rem Example (all one line)
  107. rem set TITLE=Tomcat.Cluster#1.Server#1 [%DATE% %TIME%]
  108. rem ---------------------------------------------------------------------------
  109.  
  110. setlocal
  111.  
  112. rem Suppress Terminate batch job on CTRL+C
  113. if not ""%1"" == ""run"" goto mainEntry
  114. if "%TEMP%" == "" goto mainEntry
  115. if exist "%TEMP%\%~nx0.run" goto mainEntry
  116. echo Y>"%TEMP%\%~nx0.run"
  117. if not exist "%TEMP%\%~nx0.run" goto mainEntry
  118. echo Y>"%TEMP%\%~nx0.Y"
  119. call "%~f0" %* <"%TEMP%\%~nx0.Y"
  120. rem Use provided errorlevel
  121. set RETVAL=%ERRORLEVEL%
  122. del /Q "%TEMP%\%~nx0.Y" >NUL 2>&1
  123. exit /B %RETVAL%
  124. :mainEntry
  125. del /Q "%TEMP%\%~nx0.run" >NUL 2>&1
  126.  
  127. rem Guess CATALINA_HOME if not defined
  128. set "CURRENT_DIR=%cd%"
  129. if not "%CATALINA_HOME%" == "" goto gotHome
  130. set "CATALINA_HOME=%CURRENT_DIR%"
  131. if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
  132. cd ..
  133. set "CATALINA_HOME=%cd%"
  134. cd "%CURRENT_DIR%"
  135. :gotHome
  136.  
  137. if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
  138. echo The CATALINA_HOME environment variable is not defined correctly
  139. echo This environment variable is needed to run this program
  140. goto end
  141. :okHome
  142.  
  143. rem Copy CATALINA_BASE from CATALINA_HOME if not defined
  144. if not "%CATALINA_BASE%" == "" goto gotBase
  145. set "CATALINA_BASE=%CATALINA_HOME%"
  146. :gotBase
  147.  
  148. rem Ensure that any user defined CLASSPATH variables are not used on startup,
  149. rem but allow them to be specified in setenv.bat, in rare case when it is needed.
  150. set CLASSPATH=
  151.  
  152. rem Get standard environment variables
  153. if not exist "%CATALINA_BASE%\bin\setenv.bat" goto checkSetenvHome
  154. call "%CATALINA_BASE%\bin\setenv.bat"
  155. goto setenvDone
  156. :checkSetenvHome
  157. if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
  158. :setenvDone
  159.  
  160. rem Get standard Java environment variables
  161. if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
  162. echo Cannot find "%CATALINA_HOME%\bin\setclasspath.bat"
  163. echo This file is needed to run this program
  164. goto end
  165. :okSetclasspath
  166. call "%CATALINA_HOME%\bin\setclasspath.bat" %1
  167. if errorlevel 1 goto end
  168.  
  169. rem Add on extra jar file to CLASSPATH
  170. rem Note that there are no quotes as we do not want to introduce random
  171. rem quotes into the CLASSPATH
  172. if "%CLASSPATH%" == "" goto emptyClasspath
  173. set "CLASSPATH=%CLASSPATH%;"
  174. :emptyClasspath
  175. set "CLASSPATH=%CLASSPATH%%CATALINA_HOME%\bin\bootstrap.jar"
  176.  
  177. if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
  178. set "CATALINA_TMPDIR=%CATALINA_BASE%\temp"
  179. :gotTmpdir
  180.  
  181. rem Add tomcat-juli.jar to classpath
  182. rem tomcat-juli.jar can be over-ridden per instance
  183. if not exist "%CATALINA_BASE%\bin\tomcat-juli.jar" goto juliClasspathHome
  184. set "CLASSPATH=%CLASSPATH%;%CATALINA_BASE%\bin\tomcat-juli.jar"
  185. goto juliClasspathDone
  186. :juliClasspathHome
  187. set "CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\tomcat-juli.jar"
  188. :juliClasspathDone
  189.  
  190. if not "%JSSE_OPTS%" == "" goto gotJsseOpts
  191. set JSSE_OPTS="-Djdk.tls.ephemeralDHKeySize=2048"
  192. :gotJsseOpts
  193. set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"
  194.  
  195. if not "%LOGGING_CONFIG%" == "" goto noJuliConfig
  196. set LOGGING_CONFIG=-Dnop
  197. if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuliConfig
  198. set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
  199. :noJuliConfig
  200. set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"
  201.  
  202. if not "%LOGGING_MANAGER%" == "" goto noJuliManager
  203. set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
  204. :noJuliManager
  205. set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%"
  206.  
  207. rem ----- Execute The Requested Command ---------------------------------------
  208.  
  209. echo Using CATALINA_BASE: "%CATALINA_BASE%"
  210. echo Using CATALINA_HOME: "%CATALINA_HOME%"
  211. echo Using CATALINA_TMPDIR: "%CATALINA_TMPDIR%"
  212. if ""%1"" == ""debug"" goto use_jdk
  213. echo Using JRE_HOME: "%JRE_HOME%"
  214. goto java_dir_displayed
  215. :use_jdk
  216. echo Using JAVA_HOME: "%JAVA_HOME%"
  217. :java_dir_displayed
  218. echo Using CLASSPATH: "%CLASSPATH%"
  219.  
  220. set _EXECJAVA=%_RUNJAVA%
  221. set MAINCLASS=org.apache.catalina.startup.Bootstrap
  222. set ACTION=start
  223. set SECURITY_POLICY_FILE=
  224. set DEBUG_OPTS=
  225. set JPDA=
  226.  
  227. if not ""%1"" == ""jpda"" goto noJpda
  228. set JPDA=jpda
  229. if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
  230. set JPDA_TRANSPORT=dt_socket
  231. :gotJpdaTransport
  232. if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
  233. set JPDA_ADDRESS=8000
  234. :gotJpdaAddress
  235. if not "%JPDA_SUSPEND%" == "" goto gotJpdaSuspend
  236. set JPDA_SUSPEND=n
  237. :gotJpdaSuspend
  238. if not "%JPDA_OPTS%" == "" goto gotJpdaOpts
  239. set JPDA_OPTS=-agentlib:jdwp=transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
  240. :gotJpdaOpts
  241. shift
  242. :noJpda
  243.  
  244. if ""%1"" == ""debug"" goto doDebug
  245. if ""%1"" == ""run"" goto doRun
  246. if ""%1"" == ""start"" goto doStart
  247. if ""%1"" == ""stop"" goto doStop
  248. if ""%1"" == ""configtest"" goto doConfigTest
  249. if ""%1"" == ""version"" goto doVersion
  250.  
  251. echo Usage: catalina ( commands ... )
  252. echo commands:
  253. echo debug Start Catalina in a debugger
  254. echo debug -security Debug Catalina with a security manager
  255. echo jpda start Start Catalina under JPDA debugger
  256. echo run Start Catalina in the current window
  257. echo run -security Start in the current window with security manager
  258. echo start Start Catalina in a separate window
  259. echo start -security Start in a separate window with security manager
  260. echo stop Stop Catalina
  261. echo configtest Run a basic syntax check on server.xml
  262. echo version What version of tomcat are you running?
  263. goto end
  264.  
  265. :doDebug
  266. shift
  267. set _EXECJAVA=%_RUNJDB%
  268. set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\java"
  269. if not ""%1"" == ""-security"" goto execCmd
  270. shift
  271. echo Using Security Manager
  272. set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
  273. goto execCmd
  274.  
  275. :doRun
  276. shift
  277. if not ""%1"" == ""-security"" goto execCmd
  278. shift
  279. echo Using Security Manager
  280. set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
  281. goto execCmd
  282.  
  283. :doStart
  284. shift
  285. if "%TITLE%" == "" set TITLE=Tomcat
  286. set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
  287. if not ""%1"" == ""-security"" goto execCmd
  288. shift
  289. echo Using Security Manager
  290. set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
  291. goto execCmd
  292.  
  293. :doStop
  294. shift
  295. set ACTION=stop
  296. set CATALINA_OPTS=
  297. goto execCmd
  298.  
  299. :doConfigTest
  300. shift
  301. set ACTION=configtest
  302. set CATALINA_OPTS=
  303. goto execCmd
  304.  
  305. :doVersion
  306. %_EXECJAVA% -classpath "%CATALINA_HOME%\lib\catalina.jar" org.apache.catalina.util.ServerInfo
  307. goto end
  308.  
  309. :execCmd
  310. rem Get remaining unshifted command line arguments and save them in the
  311. set CMD_LINE_ARGS=
  312. :setArgs
  313. if ""%1""=="""" goto doneSetArgs
  314. set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
  315. shift
  316. goto setArgs
  317. :doneSetArgs
  318.  
  319. rem Execute Java with the applicable properties
  320. if not "%JPDA%" == "" goto doJpda
  321. if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
  322. %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
  323. goto end
  324. :doSecurity
  325. %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
  326. goto end
  327. :doJpda
  328. if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
  329. %_EXECJAVA% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
  330. goto end
  331. :doSecurityJpda
  332. %_EXECJAVA% %JAVA_OPTS% %JPDA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
  333. goto end
  334.  
  335. :end
    #以上红色部分则为参数设置。

tomcat端口修改以及jvm启动参数设置的更多相关文章

  1. jvm 启动参数设置(转载)

    JVM启动参数 http://onlyor.iteye.com/blog/1722413 博客分类: java java java启动参数共分为三类其一是标准参数(-),所有的JVM实现都必须实现这些 ...

  2. jvm启动参数设置 -Dfile.encoding=UTF-8 解决freemark乱码

    今天一个spring boot应用windows跑起来后页面显示乱码,加上jvm启动参数为utf-8后,页面显示正常.

  3. JVM启动参数设置

    详见:http://blog.yemou.net/article/query/info/tytfjhfascvhzxcyt174 不管是YGC还是Full GC,GC过程中都会对导致程序运行中中断,正 ...

  4. 修改weblogic jvm启动参数

    进入: D:\Oracle\Middleware\user_projects\domains\base_domain\startWebLogic.cmd 在call 上一行增加: set USER_M ...

  5. NetBeansRCP-添加/修改NetBeans的JVM启动参数

    NetBeans运行的速度实在是不敢恭维.还好机器配置还可以,修改其JVM启动参数命令行,以期运行的更加顺畅. 那么如何修改NetBeans IDE的JVM参数呢? 1.到NetBeans IDE的安 ...

  6. jvm常用参数设置 专题

    在jdk8中 -Xms2g不合法,能通过的:-Xms2G #!/bin/bash JAVA_OPTS="-Xms4G -Xmx4G -XX:+HeapDumpOnOutOfMemoryErr ...

  7. jvm常用参数设置 good

    1.堆的大小可以通过 -Xms 和 -Xmx 来设置,一般将他们设置为相同的大小,目的是避免在每次垃圾回收后重新调整堆的大小,比如 -Xms=2g -Xmx=2g 或者 -Xms=512m -Xmx= ...

  8. Eclipse jvm启动参数在哪设置

    学习并转载自https://jingyan.baidu.com/article/624e7459653ca534e8ba5a26.html Java是一门非常受欢迎的编程语言,Java的开发人员多数使 ...

  9. JVM系统属性 OS环境变量 JVM启动参数

    JVM系统属性(System Properties) 1.不支持通过文件查看和设置系统属性 2.可以通过JDK自带的工具jvisulavm.exe查看 3.可以在Java程序中使用API来查看系统属性 ...

随机推荐

  1. Spring Boot 2 - 初识与新工程的创建

    Spring Boot的由来 相信大家都听说过Spring框架. Spring从诞生到现在一直是流行的J2EE开发框架. 随着Spring的发展,它的功能越来越强大,随之而来的缺点也越来越明显,以至于 ...

  2. Android 自定义 View 绘制

    在 Android 自定义View 里面,介绍了自定义的View的基本概念.同时在 Android 控件架构及View.ViewGroup的测量 里面介绍了 Android 的坐标系 View.Vie ...

  3. 腾讯开源 MMKV — 基于mmap的高性能通用key-value组件

    一.介绍 MMKV 是基于 mmap 内存映射的 key-value 组件,底层序列化/反序列化使用 protobuf 实现,性能高,稳定性强.从 2015 年中至今,在 iOS 微信上使用已有近 3 ...

  4. Android NDK学习(七):NDK 编译支持 C++特有的库

    如果你的C++代码中出现了很多C++特有的库,例如<iostream>,<list>等,那么你还需要在jni的文件夹下添加一个Application.mk文件,文件内容为: A ...

  5. Java 11 究竟比 8 快了多少?

    阅读本文大概需要 1.2 分钟. 作者:h4cd 来源:开源中国社区 开源规划调度引擎 OptaPlanner 官网发布了一个 Java 11 GC 性能基准测试报告. 当前使用量最大的 Java 版 ...

  6. 第43节:Java学前要点

    Java学前要点 01 学习Java,有人推荐去培训,有人说没用,其实有钱的,不知道如何学,或者逼不得已去的就可以,也有人自己为了不花这些钱,而选择自学,我觉得也行. 现在大部分人学东西要学的好,都是 ...

  7. LabVIEW(四):数据存储和文件IO

    1.使用NI数据采集板卡来进行数据保存和文件I/O操作.2.在一个典型的测试测量系统当中,包括:信号调理.信号采集.信号分析.信号显示.数据存储.数据存储:将采集到的数据储存到磁盘上,以备日后离线分析 ...

  8. Fiddler修改请求、返回数据

    相信你们有听过说“绕过前端”,但是可能想不到要怎样才能绕过前端呢? 首先,我们要知道什么是绕过前端?比如:登录用户名限制数字.6位,用户在登录页面填写用户名符合要求,使用Fiddler作为代理,拦截登 ...

  9. odoo开发笔记 -- self详解

    python中一切皆对象! odoo基于python开发,那么odoo中也可以理解成一切皆对象. 我们在python中定义类的时候,一般会用到self,用来表示当前对象自己. 那么odoo中的self ...

  10. (转载)java内存模型

    java并发采用的是共享内存模型,线程之间的通信对程序员来说是透明的,内存可见性问题很容易困扰着java程序员,今天我们就来揭开java内存模型的神秘面纱. 在揭开面纱之前,我们需要认识几个基础概念: ...