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