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

monitoring (Continued)
transaction service, 58
N
NameLookups, 62
Network Address, 69
network conguration, 105
network interface, 102
network interrupts, disabling, 105
NewRatio, 88
NewSize, 88
Node Supervisor Process (NSUP), 109
null, assigning, 28
NumberOfLocks, 113-115
O
open les, 97, 101
operating system, tuning, 93-106
operational requirements, 19-23
ORB, 70-76
Client properties, 73-74
IIOP Client Authentication Required, 72
Max Message Fragment Size, 72
monitoring, 70-71
Thread Pool ID, 72
thread pools, 71
Total Connections, 72
tuning, 71
P
page sizes, 105-106
pass-by-reference, 37-38
pass-by-value, 37
pauses, 86
persistence frequency, 117
persistence scope, 118
pool size, message-driven bean, 47
pre-compiled JSP les, 50
pre-fetching EJB components, 44
processors, 93
programming guidelines, 27-29
promptness, 86
R
read-only beans, 43-44
refresh period, 44, 56
reap interval, 52
recover on restart, 60
refresh period
read-only beans, 44, 56
remote vs local interfaces, 37
removal selection policy, 56
removal timeout, 56
request processing settings, 64
Request Timeout, HTTP Service, 65
resize quantity
EJB cache, 56
EJB pool, 54
restart recovery, 60
rlim_fd_cur, 95
rlim_fd_max, 95, 104
S
safety margins, 24
Secure Sockets Layer, 21
security considerations, 21
security manager, 31
semaphores, 116
separate disks, 107, 109
multiple data devices, 107
serialization, 27-29, 75-76
server tuning, 49
servlets, 29
results caching, 31
tuning, 29-31
session
persistence frequency, 117
persistence scope, 118
size, 118
state, storing, 107
Index
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 2009126










