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

Understanding Operational Requirements
Before you begin to deploy and tune your application on the Application Server, it is important
to clearly dene the operational environment. The operational environment is determined by
high-level constraints and requirements such as:
■
“Application Architecture” on page 19
■
“Security Requirements” on page 21
■
“Hardware Resources” on page 22
Application Architecture
The Java EE Application model, as shown in the following gure, is very exible; allowing the
application architect to split application logic functionally into many tiers. The presentation
layer is typically implemented using servlets and JSP technology and executes in the web
container.
Understanding Operational Requirements
Chapter 1 • Overview of Enterprise Server PerformanceTuning 19










