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

Overview of Enterprise Server Performance
Tuning
You can signicantly improve performance of the Sun GlassFish Enterprise Server and of
applications deployed to it by adjusting a few deployment and server conguration settings.
However, it is important to understand the environment and performance goals. An optimal
conguration for a production environment might not be optimal for a development
environment.
This chapter discusses the following topics:
■
“Process Overview” on page 17
■
“Understanding Operational Requirements” on page 19
■
“General Tuning Concepts” on page 23
■
“Further Information” on page 26
Process Overview
The following table outlines the overall administration process, and shows where performance
tuning ts in the sequence.
TABLE 1–1 Performance Tuning Roadmap
Step Description ofTask Location of Instructions
1 Design: Decide on the high-availability topology
and set up the Application Server and, if you are
using HADB for session persistence,
high-availability database (HADB) systems.
Deployment Planning Guide
2 Capacity Planning: Make sure the systems have
sucient resources to perform well.
Deployment Planning Guide
1
CHAPTER 1
17










