Server User Manual
Table Of Contents
- Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide
- Preface
- Overview of Enterprise Server Performance Tuning
- Tuning Your Application
- Java Programming Guidelines
- Java Server Page and Servlet Tuning
- EJB Performance Tuning
- Goals
- Monitoring EJB Components
- General Guidelines
- Using Local and Remote Interfaces
- Improving Performance of EJB Transactions
- Use Container-Managed Transactions
- Don’t Encompass User Input Time
- Identify Non-Transactional Methods
- Use TX_REQUIRED for Long Transaction Chains
- Use Lowest Cost Database Locking
- Use XA-Capable Data Sources Only When Needed
- Configure JDBC Resources as One-Phase Commit Resources
- Use the Least Expensive Transaction Attribute
- Using Special Techniques
- Tuning Tips for Specific Types of EJB Components
- JDBC and Database Access
- Tuning Message-Driven Beans
- Tuning the Enterprise Server
- Deployment Settings
- Logger Settings
- Web Container Settings
- EJB Container Settings
- Java Message Service Settings
- Transaction Service Settings
- HTTP Service Settings
- ORB Settings
- Thread Pool Settings
- Resources
- Tuning the Java Runtime System
- Tuning the Operating System and Platform
- Tuning for High-Availability
- Index

Tuning for High-Availability
This chapter discusses the following topics:
■
“Tuning HADB” on page 107
■
“Tuning the Enterprise Server for High-Availability” on page 116
■
“Conguring the Load Balancer” on page 120
Tuning HADB
The Application Server uses the high-availability database (HADB) to store persistent session
state data. To optimize performance, tune the HADB according to the load of the Enterprise
Server. The data volume, transaction frequency, and size of each transaction can aect the
performance of the HADB, and consequently the performance of Enterprise Server.
This section discusses following topics:
■
“Disk Use” on page 107
■
“Memory Allocation” on page 109
■
“Performance” on page 110
■
“Operating System Conguration” on page 116
Disk Use
This section discusses how to calculate HADB data device size and explains the use of separate
disks for multiple data devices.
Calculating HADB Data Device Size
When the HADB database is created, specify the number, and size of each data device. These
devices must have room for all the user data to be stored. In addition, allocate extra space to
account for internal overhead as discussed in the following section.
6
CHAPTER 6
107










