tomcat 调优案例
来源:互联网 发布:淘宝信誉度怎么说 编辑:程序博客网 时间:2024/04/27 19:58
本文优化信息,总体参考:tomcat性能调优
本机器环境:
linux
centos 6.5
tomcat7
jdk1.7
catalina.sh中注释最后一行添加
export JAVA_OPTS="-server -Xms1400M -Xmx1400M -Xss512k -XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:PermSize=128M -XX:MaxPermSize=256M -XX:+DisableExplicitGC -XX:MaxTenuringThreshold=31 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true "
server.xml 修改:
<Connector port="8084" protocol="HTTP/1.1" URIEncoding="UTF-8" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" connectionTimeout="20000" acceptCount="1000" maxThreads="1000" maxProcessors="1000" minProcessors="5" useURIValidationHack="false" compression="on" compressionMinSize="2048" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" redirectPort="8443" /> <Connector executor="tomcatThreadPool" port="8084" protocol="HTTP/1.1" minProcessors="5" maxProcessors="2000" acceptCount="2000" connectionTimeout="20000" redirectPort="8443" />
模拟2000用户读取文件:
loadrunner负载压力测试如下图:
0 0
- tomcat 调优案例
- tomcat内存调优案例
- tomcat配置数据源案例
- Tomcat heap 配置案例
- 调优案例分析
- Tomcat结合nginx使用案例
- 大型系统调优案例
- GC调优案例分享
- MYSQL调优案例一条
- 另一个性能调优案例
- 性能调优案例系列
- Oracle 调优经典案例
- JSP注入攻击tomcat服务器小案例
- 一次启动tomcat失败的案例
- Eclipese下Maven+Jersey+Tomcat入门案例
- sybase系统的一个调优案例
- “银基通”系统调优案例分享
- JavaEE应用程序性能调优案例分析
- 嵌入式Linux常用命令
- Java程序优化细节
- TIME_WAIT状态
- iOS--蓝牙通讯/blutooth
- Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an A
- tomcat 调优案例
- 【PS4开发】如何通过unity3d发布ps4应用
- 编译内核的保存中间文件
- Android5.x之RecyclerView使用(4)上下拉刷新
- android 应用内页面,截屏监听
- 计算机程序的构造和解释 练习 1.30
- 单源最短路径之Bellman-Ford
- MySql修改数据库编码为UTF8
- php 下载网络图片到本地服务器