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 the Enterprise Server
This chapter describes some ways to tune the Enterprise Server for optimum performance,
including the following topics:
■
“Deployment Settings” on page 49
■
“Logger Settings” on page 50
■
“Web Container Settings” on page 51
■
“EJB Container Settings” on page 53
■
“Java Message Service Settings” on page 58
■
“Transaction Service Settings” on page 58
■
“HTTP Service Settings” on page 60
■
“ORB Settings” on page 70
■
“Thread Pool Settings” on page 76
■
Resources:
■
“JDBC Connection Pool Settings” on page 77
■
“Connector Connection Pool Settings” on page 80
Deployment Settings
Deployment settings can have signicant impact on performance. Follow these guidelines when
conguring deployment settings for best performance:
■
“Disable Auto-deployment” on page 50
■
“Use Pre-compiled JavaServer Pages” on page 50
■
“Disable Dynamic Application Reloading” on page 50
3
CHAPTER 3
49










