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

TABLE 1–1 Performance Tuning Roadmap (Continued)
Step Description ofTask Location of Instructions
3 Installation: If you are using HADB for session
persistence, ensure that the HADB software is
installed.
Installation Guide
4 Deployment: Install and run your applications.
Familiarize yourself with how to congure and
administer the Enterprise Server.
Application Deployment Guide
Administration Guide
5 Tuning: Tune the following items:
■
Applications
■
Enterprise Server
■
Java Runtime System
■
Operating system and platform
■
High availability features
The following chapters:
■
Chapter 2, “Tuning Your Application”
■
Chapter 3, “Tuning the Enterprise Server”
■
Chapter 4, “Tuning the Java Runtime System”
■
Chapter 5, “Tuning the Operating System and Platform”
■
Chapter 6, “Tuning for High-Availability”
▼
PerformanceTuning Sequence
Application developers should tune applications prior to production use. Tuning applications
often produces dramatic performance improvements. System administrators perform the
remaining steps in the following list after tuning the application, or when application tuning
has to wait and you want to improve performance as much as possible in the meantime.
Ideally, follow this sequence of steps when you are tuning performance:
Tune your application, described in
Chapter 2,“Tuning Your Application”
Tune the server, described in Chapter 3,“Tuning the Enterprise Server”Chapter 3,“Tuning the
Enterprise Server”
Tune the high availability database, described in Chapter 6,“Tuning for High-Availability”
Tune the Java runtime system, described in Chapter 4,“Tuning the Java Runtime System”
Tune the operating system, described in Chapter 5,“Tuning the Operating System and Platform”
1
2
3
4
5
Process Overview
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 200918










