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

Solaris 10 Platform-SpecicTuning Information
Solaris
TM
Dynamic Tracing (DTrace) is a comprehensive dynamic tracing framework for the
Solaris Operating System (OS). You can use the DTrace Toolkit to monitor the system. The
DTrace Toolkit is available through the OpenSolaris
TM
project from the DTraceToolkit page
(http://www.opensolaris.org/os/community/dtrace/dtracetoolkit/)
.
Tuning for the Solaris OS
■
“Tuning Parameters” on page 95
■
“File Descriptor Setting” on page 97
Tuning Parameters
Tuning Solaris TCP/IP settings benets programs that open and close many sockets. Since the
Enterprise Server operates with a small xed set of connections, the performance gain might
not be signicant.
The following table shows Solaris tuning parameters that aect performance and scalability
benchmarking. These values are examples of how to tune your system for best performance.
TABLE 5–1 Tuning Parameters for Solaris
Parameter Scope Default Tuned Value Comments
rlim_fd_max /etc/system 65536 65536 Limit of process open le
descriptors. Set to account for
expected load (for associated
sockets, les, and pipes if any).
rlim_fd_cur /etc/system 1024 8192
sq_max_size /etc/system 2 0 Controls streams driver queue size;
setting to 0 makes it innite so the
performance runs won’t be hit by
lack of buer space. Set on clients
too. Note that setting sq_max_size
to 0 might not be optimal for
production systems with high
network trac.
tcp_close_wait_interval ndd /dev/tcp 240000 60000 Set on clients too.
tcp_time_wait_interval ndd /dev/tcp 240000 60000 Set on clients too.
Tuning for the Solaris OS
Chapter 5 • Tuning the Operating System and Platform 95










