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

TABLE 3–3 Tunable ORB Settings (Continued)
RMI/ IIOP from ORB to Enterprise Server communication
infrastructure, thread
pool
steady-thread-pool-size, max-thread-pool-size,
idle-thread-timeout-in-seconds
RMI/ IIOP from a vendor ORB parts of communication
infrastructure, thread
pool
steady-thread-pool-size, max-thread-pool-size,
idle-thread-timeout-in-seconds
In-process thread pool steady-thread-pool-size, max-thread-pool-size,
idle-thread-timeout-in-seconds
Tunable ORB Parameters
Tune the following ORB parameters using the Admin Console:
■
Thread Pool ID: Name of the thread pool to use.
■
Max Message Fragment Size: Messages larger than this number of bytes will be fragmented.
In CORBA GIOPv1.2, a Request, Reply, LocateRequest and LocateReply message can be
broken into multiple fragments. The rst message is a regular Request or Reply message
with more fragments bit in the ags eld set to true. If inter-ORB messages are for the most
part larger than the default size (1024 bytes), increase the fragment size to decrease latencies
on the network.
■
Total Connections: Maximum number of incoming connections at any time, on all listeners.
Protects the server state by allowing nite number of connections. This value equals the
maximum number of threads that will actively read from the connection.
■
IIOP Client Authentication Required (true/false)
ORB Thread Pool Parameters
The ORB thread pool contains a task queue and a pool of threads. Tasks or jobs are inserted into
the task queue and free threads pick tasks from this queue for execution. Do not set a thread
pool size such that the task queue is always empty. It is normal for a large application’s Max Pool
Size to be ten times the size of the current task queue.
The Enterprise Server uses the ORB thread pool to:
■
Execute every ORB request.
■
Trim EJB pools and caches.
Thus, even when one is not using ORB for remote-calls (via RMI/ IIOP), set the size of the
threadpool to facilitate cleaning up the EJB pools and caches.
Set ORB thread pool attributes under Congurations > cong-name > Thread Pools >
thread-pool-ID, where thread-pool-ID is the thread pool ID selected for the ORB. Thread pools
have the following attributes that aect performance.
ORB Settings
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 200972










