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

Disk I/O Settings ........................................................................................................................ 102
TCP/IP Settings .......................................................................................................................... 102
Tuning UltraSPARC T1–Based Systems ........................................................................................ 103
Tuning Operating System and TCP Settings .......................................................................... 103
Disk Conguration .................................................................................................................... 105
Network Conguration ............................................................................................................. 105
Start Options ............................................................................................................................... 105
6 Tuning for High-Availability ............................................................................................................107
Tuning HADB .................................................................................................................................... 107
Disk Use ...................................................................................................................................... 107
Memory Allocation .................................................................................................................... 109
Performance ............................................................................................................................... 110
Operating System Conguration ............................................................................................. 116
Tuning the Enterprise Server for High-Availability ...................................................................... 116
Tuning Session Persistence Frequency .................................................................................... 117
Session Persistence Scope .......................................................................................................... 118
Session Size ................................................................................................................................. 118
Checkpointing Stateful Session Beans ..................................................................................... 119
Conguring the JDBC Connection Pool ................................................................................. 119
Conguring the Load Balancer ........................................................................................................ 120
Enabling the Health Checker .................................................................................................... 120
Index ................................................................................................................................................... 123
Contents
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 20096










