tomcat内存设置设置
程序员文章站
2022-07-13 14:10:51
...
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
Your configuration should be similar to the screenshot below:
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
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
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:
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
上一篇: python中for循环语句的练习
下一篇: 中文帮助文档
推荐阅读
-
Python的Django框架中设置日期和字段可选的方法
-
C#设置子窗体在主窗体中居中显示解决方案
-
iOS从App跳转至系统设置菜单各功能项的编写方法讲解
-
iOS程序开发中设置UITableView的全屏分隔线的方法(不画线)
-
小米手环怎么设置来电提醒震动提示?
-
iOS应用中存储用户设置的plist文件的创建与读写教程
-
audition音频怎么设置单声道? adobe audition单声道的制作方法
-
详解iOS开发中UITableview cell 顶部空白的多种设置方法
-
adobe audition效果组内的音轨怎么设置声音?
-
Android中Activity常用功能设置小结(包括全屏、横竖屏等)