Manuals
/
Sun Microsystems
/
Computer Equipment
/
Server
Sun Microsystems
820434310 manual
Models:
820434310
1
8
128
128
Download
128 pages
34.03 Kb
5
6
7
8
9
10
11
12
<
>
Install
FAQ
Heap Configuration on Solaris
Check the speed again using the hdparm command
Default Paths and File Names
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide
“Deployment Settings” on page “Logger Settings” on page
Recover On Restart Automatic Recovery
Symbol Conventions
How to
Page 8
Image 8
8
Page 7
Page 9
Page 8
Image 8
Page 7
Page 9
Contents
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide
Sun Microsystems, Inc 4150 Network Circle Santa Clara, CA U.S.A
This distribution may include materials developed by third parties
Contents
Tuning Tips for Specific Types of EJB Components
Contents
Thread Pool Settings
Java Virtual Machine Settings
Solaris 10 Platform-Specific Tuning Information
6 Tuning for High-Availability
Figures
Java EE Application Model
Page
Tables
Performance Tuning Roadmap
Tuning 64-bit Systems for Performance Benchmarking
Page
Heap Configuration on Windows
Examples
Heap Configuration on Solaris
Page
Preface
Sun GlassFish Enterprise Server Documentation Set
Default Paths and File Names
TABLE P-2 Default Paths and File Names
TABLE P-1 Books in the Enterprise Server Documentation Set
Continued
Symbol Conventions
Typographic Conventions
The following table explains symbols that might be used in this book
Symbol Conventions
Documentation, Support, and Training
Third-Party Web Site References
Sun Welcomes Your Comments
Indicates menu item
Tuning
“General Tuning Concepts” on page “Further Information” on page
Process Overview
“Process Overview” on page
Performance Tuning Sequence
Performance Tuning Roadmap
Understanding Operational Requirements
Application Architecture
“Application Architecture” on page “Security Requirements” on page
“Hardware Resources” on page
Client-Side Presentation
Server-Side Presentation
Server-Side Enterprise Business Logic Information System
Browser
Encryption
User Authentication and Authorization
Security Requirements
Hardware Resources
Administration Guide
General Tuning Concepts
Administration
Capacity Planning
User Expectations
To Determine Capacity
1 Determine performance on a single CPU
2 Determine vertical scalability
Further Information
Further Information
Tuning Your Application
“Java Server Page and Servlet Tuning” on page
“EJB Performance Tuning” on page
Java Programming Guidelines
Assign null to Variables That Are No Longer Needed
Declare Methods as final Only If Necessary
Declare Constants as static final
Avoid Finalizers
Java Server Page and Servlet Tuning
Synchronize Only When Necessary
Declare Method Arguments final
Use DataHandlers for SOAP Attachments
Suggested Coding Practices
General Guidelines
Avoid Shared Modified Class Variables
HTTP Session Handling
Optimize SSL
Configuration and Deployment Tips
Disable Security Manager
EJB Performance Tuning
“Using Local and Remote Interfaces” on page
“Using Special Techniques” on page
“Tuning Tips for Specific Types of EJB Components” on page
The following is a sample of the monitoring output
Monitoring Individual EJB Components
Use Caching
General Guidelines
Use High Performance Beans
Using Local and Remote Interfaces
Cache and Pool Tuning Tips
Use the Appropriate Stubs
Remove Unneeded Stateful Session Beans
Using Pass-By-Reference Semantics
Prefer Local Interfaces
Use XA-Capable Data Sources Only When Needed
Improving Performance of EJB Transactions
Use Container-Managed Transactions
Don’t Encompass User Input Time
Using Special Techniques
Configure JDBC Resources as One-Phase Commit Resources
Use the Least Expensive Transaction Attribute
Version Consistency
Otherwise, ejbStore stores the data and completes as normal
2 Add the additional threadpool IDs to the Application Server’s ORB
To enable request partitioning
Request Partitioning
Tuning Tips for Specific Types of EJB Components
Entity Beans
Stateful Session Beans
4 Restart the Application Server
Read-Only Entity Beans
Checkpoint only when needed
Stateless Session Beans
Pre-fetching Container Managed Relationship CMR Beans
Refresh period
This clause indicates an outer join. These OrderLines are pre-fetched
JDBC and Database Access
Use JDBC Directly
Encapsulate Business Logic in Entity EJB Components
Close Connections
Tune the Message-Driven Bean’s Pool Size
Tuning Message-Driven Beans
Use getConnection
Cache Bean-Specific Resources
Limit Use of JMS Connections
Tuning the Enterprise Server
Deployment Settings
“Deployment Settings” on page “Logger Settings” on page
“Web Container Settings” on page “EJB Container Settings” on page
Logger Settings
Disable Auto-deployment
Disable Dynamic Application Reloading
Use Pre-compiled JavaServer Pages
Web Container Settings
General Settings
Session Properties Session Timeout
“Session Properties Session Timeout” on page
Disable Dynamic JSP Reloading
Manager Properties Reap Interval
EJB Container Settings
Tuning the EJB Container
Monitoring the EJB Container
Overview of EJB Pooling and Caching
Tuning the EJB Pool
EJB Pool Settings
Tuning the EJB Cache
EJB Cache Settings
Pool and Cache Settings for Individual EJB Components
Removal Timeout
Timeout
Max Cache Size
Commit Option
Determining the best commit option
Java Message Service Settings
Transaction Service Settings
Monitoring the Transaction Service
Viewing Monitoring Information
Tuning the Transaction Service
Disable Distributed Transaction Logging
HTTP Service Settings
Monitoring the HTTP Service
Recover On Restart Automatic Recovery
“Monitoring the HTTP Service” on page
Enabled
DNS Cache Information dns
CacheEntries CurrentCacheEntries / MaxCacheEntries
“DNS Cache Information dns” on page
HitRatio
Caching DNS Entries
Limit DNS Lookups to Asynchronous
NameLookups
File Cache Information file-cache
Keep Alive keep-alive
Tuning the HTTP Service
Access Log
“Access Log” on page “Request Processing” on page
Connection Queue
Initial Thread Count
Request Timeout
Thread Count
Max Connections
Keep Alive
Buffer Length
DNS Lookup Enabled
HTTP Protocol
HTTP File Cache
Time Out
Max Files Count
Hash Init Size
Max Age
Small/Medium File Size and File Size Limit
Acceptor Threads
Tuning HTTP Listener Settings
Network Address
ORB Settings
Overview
How a Client Connects to the ORB
Monitoring the ORB
Thread Pools
Tuning the ORB
Connection Statistics
Tunable ORB Parameters
ORB Thread Pool Parameters
Controlling connections between client and server ORB
Using multiple connections
Client ORB Properties
Load Balancing
Thread Pool Sizing
Examining IIOP Messages
Improving ORB Performance with Java Serialization
Thread Pool Settings
Tuning Thread Pools Unix /Linux only
To Enable Java Serialization
Using JSG for Application Clients
JDBC Connection Pool Settings
Tuning JDBC Connection Pools
“Pool Size Settings” on page
Resources
Pool Size Settings
Timeout Settings
“Timeout Settings” on page
“Isolation Level Settings” on page
Isolation Level Settings
Connection Validation Settings
Connector Connection Pool Settings
Transaction Support
asadmin create-connector-connection-pool --raname jdbcra
Chapter 3 Tuning the Enterprise Server
connectiondefinition javax.sql.DataSource
transactionsupport LocalTransaction TESTPOOL
Page
Tuning the Java Runtime System
Java Virtual Machine Settings
“Java Virtual Machine Settings” on page
“Managing Memory and Garbage Collection” on page
Tuning the Garbage Collector
“Other Garbage Collector Settings” on page
“Tuning the Java Heap” on page “Rebasing DLLs on Windows” on page
Managing Memory and Garbage Collection
1 Make sure that the system is not using 100 percent of its CPU
2 Configure HADB timeouts, as described in the Administration Guide
3 Configure the CMS collector in the server instance
Choosing the Garbage Collection Algorithm
Other Garbage Collector Settings
Tracing Garbage Collection
Tuning the Java Heap
“Heap Tuning Parameters” on page
Guidelines for Java Heap Sizing
“Guidelines for Java Heap Sizing” on page
Heap Tuning Parameters
Xmsvalue Xmxvalue
Rebasing DLLs on Windows
Survivor Ratio Sizing
1 Make installdir\ bin the default directory. cd installdir\bin
To rebase the Application Server’s DLLs
5 Restart the Application Server
Example 4-2 Heap Configuration on Windows
Frequently Asked Questions About the Java HotSpot Virtual Machine
Java HotSpot VM Options
Performance Documentation for the Java HotSpot VM
Java performance web page
Page
Tuning the Operating System and Platform
“Solaris 10 Platform-Specific Tuning Information” on page
“Tuning for the Solaris OS” on page “Linux Configuration” on page
“Tuning for Solaris on x86” on page
Memory
Disk Space
Networking
Npeakr / t
Solaris 10 Platform-Specific Tuning Information
Tuning for the Solaris OS
Tuning Parameters
“Tuning Parameters” on page “File Descriptor Setting” on page
Sizing the Connection Hash Table
on page
Linux Configuration
File Descriptor Setting
Tuning for Solaris on
“File Descriptors” on page “IP Stack Settings” on page
IP Stack Settings
File Descriptors
Tuning for Linux platforms
“Network Interface” on page “Disk I/O Settings” on page
“TCP/IP Settings” on page
“File Descriptors” on page “Virtual Memory” on page
Virtual Memory
Disk I/O Settings
TCP/IP Settings
To tune the TCP/IP settings
2 Enable direct memory access DMA
Tuning UltraSPARC T1-Based Systems
Tuning Operating System and TCP Settings
4 Reboot the system
2 Add the following to /etc/sysctl.conf
TABLE 5-2 Tuning 64-bit Systems for Performance Benchmarking
Note that the IPGE driver version is
Start Options
Disk Configuration
Network Configuration
LDPRELOAD32=/usr/lib/mpss.so.1 export LDPRELOAD32 export MPSSHEAP=4M
Tuning for High-Availability
Tuning HADB
“Tuning HADB” on page
“Tuning the Enterprise Server for High-Availability” on page
Tuning Data Device Size
hadbm set TotalDatadeviceSizePerNode
Memory Allocation
Placing HADB files on Physical Disks
“Timeouts” on page
Performance
DataBufferPoolSize
“DataBufferPoolSize” on page “LogBufferSize” on page
Tuning DataBufferPoolSize
LogBufferSize
Tuning LogBufferSize
InternalLogbufferSize
Tuning InternalLogbufferSize
NumberOfLocks
Summary
Tuning NumberOfLocks
Calculating the number of locks
Load Balancer timeouts
Timeouts
JDBC connection pool timeouts
Tuning the Enterprise Server for High-Availability
Operating System Configuration
HADB timeouts
“Tuning Session Persistence Frequency” on page
Time-based
Tuning Session Persistence Frequency
Web-method
Session Persistence Scope
Session Size
session
modified-session
Configuring the JDBC Connection Pool
Checkpointing Stateful Session Beans
Connection Pools” on page
Configuring the Load Balancer
Enabling the Health Checker
health-checker
Page
Index
caching Continued servlet results, 31 capacity planning
Page
Page
monitoring Continued transaction service
Page
Index
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide January
x86 XA-capable data sources, 38-39 -Xms Xmx, 88