Tuning the Enterprise Server for High-Availability

It is important to pay attention while determining the HTTP session size. If you are creating large HTTP session objects, calculate the HADB nodes as discussed in “Tuning HADB” on page 107.

Checkpointing Stateful Session Beans

Checkpointing saves a stateful session bean (SFSB) state to the HADB so that if the server instance fails, the SFSB is failed over to another instance in the cluster and the bean state recovered. The size of the data being checkpointed and the frequency at which checkpointing happens determine the additional overhead in response time for a given client interaction.

You can enable SFSB checkpointing at numerous different levels:

For the entire server instance or EJB container

For the entire application

For a specific EJB module

Per method in an individual EJB module

For best performance, specify checkpointing only for methods that alter the bean state significantly, by adding the <checkpointed-methods> tag in the sun-ejb-jar.xml file.

Configuring the JDBC Connection Pool

The Enterprise Server uses JDBC to store and retrieve HADB data. For best performance, configure the JDBC connection pool for the fastest possible HADB read/write operations.

Configure the JDBC connection pool in the Admin Console under Resources > JDBC > Connection Pools > pool-name. The connection pool configuration settings are:

Initial and Minimum Pool Size: Minimum and initial number of connections maintained in the pool (default is 8)

Maximum Pool Size: Maximum number of connections that can be created to satisfy client requests (default is 32)

Pool Resize Quantity: Number of connections to be removed when idle timeout timer expires

Idle Timeout: Maximum time (seconds) that a connection can remain idle in the pool. (default is 300)

Max Wait Time: Amount of time (milliseconds) caller waits before connection timeout is sent

Chapter 6 • Tuning for High-Availability

119

Page 119
Image 119
Sun Microsystems 820434310 manual Checkpointing Stateful Session Beans, Configuring the Jdbc Connection Pool