bea.com | products | dev2dev | support | askBEA

Download Docs | Site Map | Glossary
Search

WebLogic Server Performance and Tuning

Benchmark Tuning Examples for WebLogic Server 7.0 SP1

The following sections provide recommendations for improving the out-of-the-box performance of WebLogic Server when running the ECPerf or SPECjAppServer 2001/2002 benchmarks. Optimal WebLogic Server production tuning values vary according to your environment and applications.

- Tuning an Intel Xeon System

- Tuning a Sun UltraSparc III System

Tuning an Intel Xeon System

On a system using Intel's Xeon (Pentium 4) processor, the following tuning recommendations may provide up to a 700% performance improvement over WebLogic Server's default out-of-the-box tuning configuration. These recommendations are based on the following hardware and operating system configuration:

- 4-processor, 1.6 GHz Intel Xeon (Pentium 4)

- Hyper-threading technology enabled

- 4GB of memory

- Windows 2000 Advanced Server

JVM Tuning Tips

Use the BEA JRockit JVM instead of the Sun JVM that comes bundled with WebLogic Server. For more information on tuning JRockit, see the BEA JRockit Performance Tuning Guide.

- Use the following JRockit garbage collection and memory management options:

  - -Xnativethreads (JRockit native thread system)

  - -Xgc:parallel (parallel garbage collector)

  - -Xallocationtype:local (local thread allocation)

- Increase the minimum and maximum heap sizes to 1536MB (-Xms1536m -Xmx1536m).

- Specify the young generation (nursery) heap size as 512MB (-Xns512m).

WebLogic Server Tuning Tips

Implement the following tuning recommendations on your WebLogic Server instance. For more information on tuning WebLogic Server parameters, see Tuning WebLogic Server.

- Run one instance of WebLogic Server on the Intel Pentium machine.

- Increase the default ExecuteQueue parameter to 27 threads.

- Increase the JDBC connection pool InitialCapacity and MaxCapacity database connection parameters to 40.

- Increase the JDBC connection pool PreparedStatementCacheSize parameter to 300.

Tuning a Sun UltraSparc III System

On a system using Sun Microsystems' UltraSparc III processor, the following tuning recommendations may provide up to a 560% performance improvement over WebLogic Server's default out-of-box tuning configuration. These recommendations are based on the following hardware and operating system configuration:

- 4-processor, 900 MHz Sun UltraSparc III

- 4GB of memory

- Solaris 8

JVM Tuning Tips

The following tuning recommendations apply to the Sun Hotspot JVM that comes bundled with WebLogic Server. For more information on tuning the Hotspot JVM, see Tuning Java Virtual Machines (JVMs).

- Use the HotSpot Server VM option (-server) instead of the HotSpot Client VM (-client).

- Increase the minimum and maximum heap sizes to 1536MB (-Xms1536m -Xmx1536m).

- Specify the New generation minimum and maximum heap sizes as 350MB (-XX:NewSize=350m -XX:MaxNewSize=350m).

- Specify the New generation survivor ratio as 10 (-XX:SurvivorRatio=10).

WebLogic Server Tuning Tips

Implement the following tuning recommendations on your WebLogic Server instances. For more information on tuning WebLogic Server parameters, see Tuning WebLogic Server.

- Run two instances of WebLogic Server on the UltraSparc III machine.

- Specify -Dweblogic.PosixSocketReaders=1 on the command line when you start the WebLogic Server instances.

- Increase the JDBC connection pool InitialCapacity and MaxCapacity database connection parameters to 25.

- Increase the JDBC connection pool PreparedStatementCacheSize parameter to 300.