编号 |
问题描述 |
解决方法 |
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