Date: 26-Nov-2009   URL: www.sun.com/servers/coolthreads/tnb/applications_bea.jsp

CoolThreads Try and Buy Application Resources

 
Begin Product Tab Sub Links

BEA Weblogic Configuration Notes

The tuning of Weblogic varies slightly with the version being used

We recommend using the latest release BEA 9.0 which enables Sun's latest JVM 1.5.0_06. If migration to BEA 9.0 is not possible then use BEA 8.1 SP with JVM 1.4.2_08.

Use libumem for BEA:

LD_PRELOAD_32=/usr/lib/libumem.so.1 startWebLogic.sh

Given below are settings used for applications that services JSP and has about 10 EJBs each with a cache size of about 10000 entries and servicing NN simultaneous requests

JVM 1.5.0_06 Options:

-server -XX:+AggressiveHeap -XX:ParallelGCThreads=4 -Xmx3g -Xms3g -Xmn800M -XX:LargePageSizeInBytes=4m -XX:-BindGCTaskThreadsToCPUs -XX:MaxTenuringThreshold=3 -XX:SurvivorRatio=20 -Xloggc:/tmp/gc.log -Dweblogic.SocketReaders=10

JVM 1.4.2_08 Options:

-server -XX:+UseParallelGC -XX:+AggressiveHeap -XX:ParallelGCThreads=4 -Xms3g -Xmx3g -Xmn800m -Xss128k -XX:LargePageSizeInBytes=4m -XX:-BindGCTaskThreadsToCPUs -XX:PermSize=128m -XX:MaxTenuringThreshold=3 -XX:SurvivorRatio=20 -Xloggc:/tmp/gc.log -Dweblogic.SocketReaders=10

Watch the Garbage Collection (GC) activity via log file (/tmp/gc.log if using the above JVM options) to see if GC is an issue. Tune heap size if necessary (-Xmx, -Xms) to reduce Full GC and or to reduce time spent in Full GC.

You can use these additional parameters to get details about GC activity.

-XX:+PrintGCDetails -XX:+PrintGCTimeStamps-XX:-TraceClassUnloading

Run multiple BEA instances if necessary.

Tune worker thread pools to better balance execute queues in the applications. To manually tune the worker threads in BEA 9.1, set the following in config.xml

<use81-style-execute-queues>true</use81-style-execute-queues>

Enable native io in config.xml

Tune JDBC parameters depending on application

jdbc connection pool size statement-cache-size

Other tunables

keep-alive timeout accept-backlog socket-reader-timeout number of socket readers

BEA 9.0 Tuning Guide

http://e-docs.bea.com/wls/docs90/perform/

BEA 8.1 Tuning Guide

http://e-docs.bea.com/wls/docs81/perform/index.html
http://e-docs.bea.com/wls/docs81/perform/HWTuning.html

Other URL

http://dev2dev.bea.com/pub/a/2002/10/subramaniam.html
http://dev2dev.bea.com/cs/user/view/cs_msg/257

 
 
Copyright 2004-2009 Sun Microsystems, Inc.