当前位置: 代码迷 >> Web前端 >> [转]Weblogic9、十、10R3版本线程池手动调节
  详细解决方案

[转]Weblogic9、十、10R3版本线程池手动调节

热度:335   发布时间:2012-10-09 10:21:45.0
[转]Weblogic9、10、10R3版本线程池手动调节

LHT-weblogic优化
weblogic作为一款优秀的应用服务器,有着很大的市场占有率,并大部分运行在关键业务系统上,从经典的8开始到目前的11g(10R3)性能和易用性都在不断的改进和提升,对于配置和优化响应的参数方面也正在变迁;
如下为config.xml参数文件:?

<server>
??? <name>AdminServer</name>
??? <execute-queue>
????? <name>default</name>
????? <thread-count>200</thread-count>
????? <threads-maximum>400</threads-maximum>
??? </execute-queue>
??? <use81-style-execute-queues>true</use81-style-execute-queues>

???? <listen-address></listen-address>
? </server>

官方文档指出,WebLogic 9 / WebLogic 10 的线程池是自调优的,并且在WebLogic 9的时候,通过修改config.xml可以修改默认线程池的最小值、最大值,但是很麻烦。到了WebLogic 10gR3,连修改

config.xml的办法都给取消了。

但是,可以通过在启动脚本增加如下参数,可以指定默认线程池的最小值、最大值:
-Dweblogic.threadpool.MinPoolSize=100
-Dweblogic.threadpool.MaxPoolSize=500

经过测试,WebLogic 9.x / 10.x /10gR3 均起作用

在此做个记录。