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

Contents
Preface ...................................................................................................................................................13
1 Overview of Enterprise Server PerformanceTuning ..................................................................... 17
Process Overview ................................................................................................................................ 17
▼ Performance Tuning Sequence .................................................................................................. 18
Understanding Operational Requirements ..................................................................................... 19
Application Architecture ............................................................................................................ 19
Security Requirements ................................................................................................................ 21
Hardware Resources .................................................................................................................... 22
Administration ............................................................................................................................. 23
General Tuning Concepts .................................................................................................................. 23
Capacity Planning ........................................................................................................................ 24
User Expectations ........................................................................................................................ 25
Further Information ............................................................................................................................ 26
2 Tuning Your Application .....................................................................................................................27
Java Programming Guidelines ........................................................................................................... 27
Avoid Serialization and Deserialization .................................................................................... 27
Java Server Page and Servlet Tuning ................................................................................................. 29
Suggested Coding Practices ........................................................................................................30
EJB Performance Tuning .................................................................................................................... 32
Goals .............................................................................................................................................. 32
Monitoring EJB Components .................................................................................................... 32
General Guidelines ...................................................................................................................... 35
Using Local and Remote Interfaces ........................................................................................... 36
Improving Performance of EJB Transactions .......................................................................... 38
Using Special Techniques ........................................................................................................... 39
3










