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 Tips for Specic Types of EJB Components ............................................................... 42
JDBC and Database Access ......................................................................................................... 46
Tuning Message-Driven Beans .................................................................................................. 47
3 Tuning the Enterprise Server .............................................................................................................49
Deployment Settings ........................................................................................................................... 49
Disable Auto-deployment ........................................................................................................... 50
Use Pre-compiled JavaServer Pages ........................................................................................... 50
Disable Dynamic Application Reloading .................................................................................. 50
Logger Settings ..................................................................................................................................... 50
General Settings ........................................................................................................................... 51
Log Levels ...................................................................................................................................... 51
Web Container Settings ...................................................................................................................... 51
Session Properties: Session Timeout ......................................................................................... 51
Manager Properties: Reap Interval ............................................................................................ 52
Disable Dynamic JSP Reloading ................................................................................................ 52
EJB Container Settings ........................................................................................................................ 53
Monitoring the EJB Container ................................................................................................... 53
Tuning the EJB Container ...........................................................................................................53
Java Message Service Settings ............................................................................................................. 58
Transaction Service Settings .............................................................................................................. 58
Monitoring the Transaction Service .......................................................................................... 58
Tuning the Transaction Service ................................................................................................. 59
HTTP Service Settings ........................................................................................................................ 60
Monitoring the HTTP Service .................................................................................................... 60
Connection Queue ....................................................................................................................... 64
Tuning the HTTP Service ........................................................................................................... 64
Tuning HTTP Listener Settings ................................................................................................. 69
ORB Settings ........................................................................................................................................ 70
Overview ....................................................................................................................................... 70
How a Client Connects to the ORB ............................................................................................ 70
Monitoring the ORB .................................................................................................................... 70
Tuning the ORB ........................................................................................................................... 71
Thread Pool Sizing ....................................................................................................................... 74
Examining IIOP Messages .......................................................................................................... 74
Contents
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 20094










