weblogic9.2中固定初始线程数

 modify the default Execute thread count in Weblogic Server 9.2

 

Home > Summary of Servers > AdminServer  >Monitoring>Threads

 

Queue Length:值如果较大,说明等待队列比较严重。可以在weblogic中固定初始化的线程数。

以减少线程动态增长带来的资源消耗。尤其在大并发的压测环境中,固定初始线程数会带来明显

的性能提升。修改后要重启weblogic。有两种方法

 

 

一、修改启动文件

Windows:startWebLogic.cmd

Linux,Aix: startWebLogic.sh

 

 

${JAVA_HOME}/bin/java ${JAVA_VM} -version
if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
        echo "Starting WLS with line:"
        echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Ddomain.Name=8001 -Denvir
onmenTypeCode=yace -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy  ${PROXY_SETTINGS} ${SERVER_CLASS}"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.threadpool.MinPoolSize=200 -Dweblogic.threadpool.Max
PoolSize=400
-Dweblogic.Name=${SERVER_NAME} -Ddomain.Name=8001 -DenvironmenTypeCode=yace  -Djava.security.policy=${WL_HOME}/server/l
ib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}
else
        echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.threadpool.MinPoolSize=200 -Dweblogic.threadpool.Max
PoolSize=400
-Dweblogic.Name=${SERVER_NAME} -Ddomain.Name=8001 -DenvironmenTypeCode=yace  -Djava.security.policy=${WL_HOME}/server/l
ib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}  >"${WLS_REDIRECT_LOG}" 2>&1

 

 

二、修改config.xml

 

在config.xml中添加如下信息:

 

/home/weblogic/bea/user_projects/domains/prpall2100_8001/config/config.xml

<server>
<name>AdminServer</name>
<self-tuning-thread-pool-size-min>100</self-tuning-thread-pool-size-min>
<self-tuning-thread-pool-size-max>200</self-tuning-thread-pool-size-max>
</server>

 

 

 

参考文档:http://cn.forums.oracle.com/forums/thread.jspa?threadID=1128215

 

 

你可能感兴趣的:(java,weblogic,server,Class,AIX,redirect)