Tune WebLogic Server Performance Parameters
The WebLogic Server configuration file (config.xml
) contains a number of OOTB (out-of-the-box) performance-related parameters that can be fine-tuned depending on your environment and applications. Tuning these parameters based on your system requirements (rather than running with default settings) can greatly improve both single-node performance and the scalability characteristics of an application.
Try experimenting with the following WebLogic Server configuration tuning parameters to determine your system’s “sweet spot” for optimal performance:
- Modify the value of the execute queue’s Thread Count, as described in Tuning the Default Execute Queue Threads.
- If possible, use native performance packs (
NativeIOEnabled=true
), as described in Using WebLogic Server “Native IO” Performance Packs. - Use application-specific execute queues, as described in Using Execute Queues to Control Thread Usage.
- When using a JDBC Connection Pool, modify the following attributes:
- DriverName: Use the thin driver or jDriver, as described in “Using JDBC Drivers with WebLogic Server” in Programming WebLogic JDBC.
- InitialCapacity: Set this to equal the MaxCapacity value, as described in Tuning JDBC Connection Pool Initial Capacity.
- MaxCapacity: Set the MaxCapacity value to at least equal the Thread Count value, and then, if necessary, increase it again until you find the right number, as described in Tuning JDBC Connection Pool Maximum Capacity.
- Set the connection pool size to equal the execute queue’s Thread Count, as described in How JDBC Connection Pools Enhance Performance.
- Set the statement cache as described in Caching Prepared and Callable Statements.
- Use multiple execute queues for servlets and JSPs, as described in Assigning Servlets and JSPs to Execute Queues, and for EJBs and RMI, as described in Assigning EJBs and RMI Objects to Execute Queues.
- Consider switching the default Java compiler for
JSP
compilation,javac
, which is significantly slower thanjikes
orsj
, as described in Setting Your Java Compiler.