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

deployment
settings, 49
tips, 31
deserialization, 27-29
disabling network interrupts, 105
disk conguration, 105
disk I/O performance, 102
disk space, 94
distributed transaction logging, disabling, 59
DNS cache, 61-62
DNS lookups, 62, 67
dynamic reloading, disabling, 50
E
EJB components
cache tuning, 35-36, 36, 55-56
commit options, 57-58
monitoring individual, 34-35
performance of types, 35
pool tuning, 36, 54-55
stubs, using, 36
transactions, 38-39
EJB container, 53-58
cache settings, 55-56
caching vs pooling, 53-54
monitoring, 32, 53
pool settings, 54-55
tuning, 32, 53-58
eliminateRedundantEndTransaction, 120
encryption, 21-22
entity beans, 42
expectations, 25-26
F
le cache, 63, 67-68
le descriptors, 99, 100
File Size Limit, HTTP le cacheHTTP le cache, File
Size Limit, 68
File Transmission, HTTP le cacheHTTP le cache, File
Transmission, 68
nal, methods, 28
nalizers, avoiding, 28
footprint, 86
fragmented messages, 75
G
Garbage Collector, 84-85
generational object memory, 84
H
HADB, 107
data device size, 107
database buer, 110
history les, 108
JDBC connection pool, 119
locks, 113
memory, 109
timeouts, 115
hardware resources, 22
Hash Init Size, HTTP le cache, 68
hash table, connection, 96
health checker, 120
high-availability database, 107
hires_tick, 104
history les, HADB, 108
HitRatio, 62
HotSpot, 85
HTTP access logged, 105
HTTP le cache, 67-68
Hash Init Size, 68
Max Age, 68
Max Files Count, 68
Small/Medium File Size, 68
HTTP listener settings, 69
HTTP protocol, 67
HTTP Service, 60
Buer Length, 66
Initial Thread Count, 65
keep-alive settings, 66
monitoring, 60
Request Timeout, 65
Thread Count, 65
Index
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 2009124










