Checkpointing Stateful Session Beans; Configuring The Jdbc Connection Pool - Sun Microsystems Sun GlassFish Enterprise Server 2.1 Tuning Manual

Performance tuning guide
Hide thumbs Also See for Sun GlassFish Enterprise Server 2.1:
Table of Contents

Advertisement

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
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
Tuning the Enterprise Server for High-Availability
"Tuning HADB" on
119

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Sun GlassFish Enterprise Server 2.1 and is the answer not in the manual?

Questions and answers

Table of Contents