Sun ONE logo      Previous      Index      Next     

Sun ONE Web Server 6.1 Performance Tuning, Sizing, and Scaling Guide

Contents


About This Guide
Who Should Use This Guide
Using the Documentation
How This Guide Is Organized
Documentation Conventions
Product Support

Chapter 1   Performance and Monitoring Overview
Performance Issues
Virtual Servers
Monitoring Server Performance
Monitoring Current Activity Using the Server Manager
Activating Statistics
Monitoring Statistics
Virtual Server Statistics
Monitoring Current Activity Using the perfdump Utility
Installing the perfdump Utility
Sample perfdump Output
Using Performance Buckets
Configuration
Performance Report

Chapter 2   Tuning Sun ONE Web Server
General Tuning Tips
Using Statistics to Tune Your Server
Connection Queue Information
Current /Peak /Limit
Total Connections Queued
Average Queuing Delay
Listen Socket Information
Address
Acceptor Threads
Default Virtual Server
Keep-Alive/Persistent Connection Information
KeepAliveThreads
KeepAliveCount
KeepAliveHits
KeepAliveFlushes
KeepAliveRefusals
KeepAliveTimeout
KeepAliveTimeouts
UseNativePoll
Session Creation Information
Cache Information
enabled
CacheEntries
Hit Ratio (CacheHits / CacheLookups)
Maximum Age
Thread Pools
Thread Pools (UNIX/Linux Only)
Native Thread Pools (Windows Only)
Generic Thread Pools (Windows Only)
Idle /Peak /Limit
Work Queue Length /Peak /Limit
NativePoolStackSize
NativePoolQueueSize
NativePoolMaxThreads
NativePoolMinThreads
DNS Cache Information
enabled
CacheEntries (CurrentCacheEntries / MaxCacheEntries)
HitRatio (CacheHits / CacheLookups)
Busy Functions
Threads, Processes, and Connections
Connection-Handling Overview
Process Modes
Single-Process Mode
Multi-Process Mode
Listen Socket Acceptor Threads
Maximum Simultaneous Requests
Keep-Alive Subsystem Tuning
HTTP/1.0-style Workload
HTTP/1.1-style Workload
Tuning the File Cache
Configuring the File Cache
Using the nocache Parameter
Monitoring the File Cache with the Server Manager
File Cache Dynamic Control and Monitoring
Tuning the ACL User Cache
ACL User Cache Directives
ACLCacheLifetime
ACLUserCacheSize
ACLGroupCacheSize
Verifying ACL User Cache Settings
Tuning Java Web Applications Performance
Using Java Heap Tuning
Using Precompiled JSPs
Using Servlet/JSP Caching
Configuring the Java Security Manager
Configuring Class Reloading
Avoiding Directories in the Classpath
Configuring the Web Application’s Session Settings
Tuning maxLocks (UNIX/Linux)
Tuning MMapSessionManager (UNIX/Linux)
Configuring JDBC Connection Pooling
JDBC Connection Pool Attributes
name
datasourceclassname
steadypoolsize
maxpoolsize
poolresizequantity
idletimeout
maxwaittime
connectionvalidationrequired
connectionvalidationmethod
validationtablename
failallconnections
transactionisolationlevel
isolationlevelguaranteed

Chapter 3   Miscellaneous Performance Topics
Miscellaneous magnus.conf Directives
Buffer Size
Tuning
Connection Timeout
Tuning
CGIStub Processes (UNIX/Linux)
Tuning
Miscellaneous obj.conf Parameters
find-pathinfo-forward
nostat
Using Quality of Service
Using Load Balancing
Using libloadbal
Library configuration
Testing
Sample

Chapter 4   Common Performance Problems
Magnus Editor Values
check-acl Server Application Functions
Low-memory Situations
Under-throttled Server
Cache Not Utilized
Keep-Alive Connections Flushed
Log File Modes

Chapter 5   Platform-specific Issues and Tips
Solaris-specific Issues
Files Open in a Single Process
File Descriptor Limits
Failure to Connect to HTTP Server
Connection Refused Errors
Tuning TCP Buffering
Using the Solaris Network Cache and Accelerator (SNCA)
RqThrottle and ConnQueueSize
Solaris File System Tuning
High File System Page-in Rate
Reduce File System Housekeeping
Long Service Times on Busy Disks or Volumes
Solaris-specific Performance Monitoring
Short-term System Monitoring
Long-term System Monitoring
"Intelligent" Monitoring
Tuning Solaris for Performance Benchmarking

Chapter 6   Sizing and Scaling Your Server
Processors
Memory
Drive Space
Networking

Chapter 7   Scalability Studies
Study Goals
General Conclusions
Sun ONE Web Server Configuration
Tuned Server Settings
nsfc.conf Settings
System Configuration
Performance Results
Static Content Test
Dynamic Content Test: WASP Servlet
Dynamic Content Test: C CGI
Dynamic Content Test: Perl CGI
Dynamic Content Test: NSAPI
SSL Performance Test: Static Content
SSL Performance Test: Perl CGI
SSL Performance Test: C CGI
SSL Performance Test: NSAPI
JDBC Connection Pooling with OCI Driver
PHP Scalability Tests
FastCGI
NSAPI

Index


Previous      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.