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

set serverInstance.iiop-service.orb.system.monitoringEnabled=true
reconfig serverInstance
Connection Statistics
The following statistics are gathered on ORB connections:
■
total-inbound-connections Total inbound connections to ORB.
■
total-outbound-connections Total outbound connections from ORB.
Use this command to get ORB connection statistics:
asadmin get --monitor
serverInstance.iiop-service.orb.system.orb-connection.*
Thread Pools
The following statistics are gathered on ORB thread pools:
■
thread-pool-size Number of threads in ORB thread pool.
■
waiting-thread-count Number of thread pool threads waiting for work to arrive.
Use this command to get ORB thread pool statistics:
asadmin get --monitor
serverInstance.iiop-service.orb.system.orb-thread-pool.*
Tuning the ORB
Tune ORB performance by setting ORB parameters and ORB thread pool parameters. You can
often decrease response time by leveraging load-balancing, multiple shared connections, thread
pool and message fragment size. You can improve scalability by load balancing between
multiple ORB servers from the client, and tuning the number of connection between the client
and the server.
The following table summarizes the tunable ORB parameters.
TABLE 3–3 Tunable ORB Settings
Path ORB modules Server settings
RMI/ IIOP from application client to application
server
communication
infrastructure, thread
pool
steady-thread-pool-size, max-thread-pool-size,
idle-thread-timeout-in-seconds
ORB Settings
Chapter 3 • Tuning the Enterprise Server 71










