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