首页 > 代码库 > Tomcat常用配置

Tomcat常用配置

设置编码

修改 conf\server.xml 

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" />


设置应用名称所对应的目录

conf\server.xml文件,Engine--Host标签中添加

<Context path="/bsvpmweb" docBase="D:\server\apache-tomcat-7.0.57_manual\webapps\LPS" debug="0" privileged="true"> 
			   </Context> 

设置tomcat的内存

bin\catalina.bat文件中设置

set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER% -Xms128m -Xmx350m" 



Tomcat常用配置