首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

tomcat内存储器设置设置

2012-06-28 
tomcat内存设置设置For WindowsIf you haven′t installed Tomcat as a service, edit Tomcats bin/setenv

tomcat内存设置设置
For Windows

If you haven′t installed Tomcat as a service, edit Tomcat's bin/setenv.bat(create it if it does not exist) and set:


set CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dfile.encoding=UTF-8 -Xms128m -Xmx512m -XX:MaxPermSize=256m

If Tomcat is installed and running as a service:

1.Right-click Tomcat's system tray icon and select 'Configure' from the resulting popup menu, which opens the 'Apache Tomcat 6 Properties' dialog box:





Now click on the Java tab and enter the following values




For Linux

Edit Tomcat's bin/setenv.sh (create it if it does not exist) and set:

export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true  -Dfile.encoding=UTF-8 -Xms128m -Xmx512m -XX:MaxPermSize=256m"

热点排行