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

Improving ORB Performance with Java Serialization ............................................................. 75
Thread Pool Settings ........................................................................................................................... 76
Tuning Thread Pools (Unix /Linux only) ................................................................................. 76
Resources .............................................................................................................................................. 77
JDBC Connection Pool Settings ................................................................................................. 77
Connector Connection Pool Settings ........................................................................................ 80
4 Tuning the Java Runtime System ...................................................................................................... 83
Java Virtual Machine Settings ............................................................................................................ 83
Managing Memory and Garbage Collection .................................................................................... 84
Tuning the Garbage Collector .................................................................................................... 84
Tracing Garbage Collection ........................................................................................................86
Other Garbage Collector Settings .............................................................................................. 86
Tuning the Java Heap .................................................................................................................. 87
Rebasing DLLs on Windows ...................................................................................................... 89
Further Information ............................................................................................................................ 91
5 Tuning the Operating System and Platform ................................................................................... 93
Server Scaling ....................................................................................................................................... 93
Processors ..................................................................................................................................... 93
Memory ......................................................................................................................................... 94
Disk Space ..................................................................................................................................... 94
Networking ................................................................................................................................... 94
Solaris 10 Platform-Specic Tuning Information ........................................................................... 95
Tuning for the Solaris OS ................................................................................................................... 95
Tuning Parameters ...................................................................................................................... 95
File Descriptor Setting ................................................................................................................. 97
Linux Conguration ........................................................................................................................... 97
Tuning for Solaris on x86 ................................................................................................................... 98
File Descriptors ............................................................................................................................ 99
IP Stack Settings ........................................................................................................................... 99
Tuning for Linux platforms ............................................................................................................. 100
File Descriptors .......................................................................................................................... 100
Virtual Memory ......................................................................................................................... 101
Network Interface ...................................................................................................................... 102
Contents
5










