Elearning性能测试总结报告

发表于:2010-2-03 14:29

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:小糊涂仙(cnblogs)    来源:51Testing软件测试网采编

编号

问题描述

解决方法

6

jboss server.log有All threads (200) are currently busy, waiting. Increase maxThreads (200) or check the servlet status

Apache通过mod_jk1.2 转发http 请求给jboss。

故修改 jboss-4.0.5.GA/server/default/deploy/server.xml

调整ajp connector 设置:

<!-- A AJP 1.3 Connector on port 8009 -->

<Connector port="8009" address="${jboss.bind.address}" backlog="1200"

maxThreads="2100" minSpareThreads="20" maxSpareThreads="50"

emptySessionPath="true" enableLookups="false" redirectPort="8443"

protocol="AJP/1.3"/>

同时在linux 的.bash_profile 增加文件句柄: ulimit -n 4096

7

ORA-00020: maximum number of processes (600) exceeded

利用oracle statspack以及检查wait event,没有发现数据库方面有阻塞!故定位到连接池参数配置不当导致异常。

更改apache dbcp连接池参数,防止连接leak 。

<set property="removeAbandoned" value="true"/>

<set property="removeAbandonedTimeout" value="60"/>

<set property="logAbandoned" value="true"/>

8

调整log4j 日志级别

在jboss-4.0.5.GA/server/default/conf/log4j.xml

增加日志输出阀值:

<param value="ERROR"/>

  II类问题(未解决):

编号

问题描述

规避方案

1

 

 

 

 

 

  III类问题(遗留):

编号

问题描述

遗留原因

1

在已经满足性能情况下, 服务器硬件充足,但web server层应用代码大量错误

已经满足性能。建议采用tptp 、jprofiler或者JRockit Mission Control 之类工具定位热点方法

 

 

 

  三、技术拓展

  调优用到的资料参考:

  1、Apache Tomcat Configuration Reference  http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

  2、OutOfMemoryExceptionWhenRedeploying  http://wiki.jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenRedeploying

  3、Preventing dB connection pool leaks

  http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

  4、Apache Performance Tuning

  http://httpd.apache.org/docs/2.0/misc/perf-tuning.html

  5、Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine

  http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

22/2<12
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号