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:

tomcat内存设置设置_第1张图片



Now click on the Java tab and enter the following values

Field Value
Java Options (append to the existing value) -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
Initial memory pool -128
Maximum memory pool -512



Your configuration should be similar to the screenshot below:

tomcat内存设置设置_第2张图片


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"


Eclipse Tomcat

tomcat内存设置设置_第3张图片
  • tomcat内存设置设置_第4张图片
  • 大小: 10 KB
  • tomcat内存设置设置_第5张图片
  • 大小: 40.8 KB
  • tomcat内存设置设置_第6张图片
  • 大小: 67.4 KB
  • 查看图片附件

你可能感兴趣的:(tomcat)