Manuals
/
Brands
/
Photography
/
Security Camera
/
Sun Microsystems
/
Photography
/
Security Camera
Sun Microsystems
7 manual
1
1
132
132
Download
132 pages, 1.29 Mb
Sun Java SystemWeb Server 7.0
Update 1 PerformanceTuning,
Sizing, and Scaling Guide
SunMicrosystems, Inc.
4150Network Circle
SantaClara, CA 95054
U.S.A.
PartNo:820–1067
Contents
Main
Page
Contents
Page
Page
Page
Tables
Page
Page
Page
Preface
Who Should UseThis Book
BeforeYou ReadThis Book
WebSer verDocumentation Set
Page
RelatedB ooks
Thefollowing table describes the default paths and le names that are used in this book.
Default Pathsand File Names
Page
TypographicConventions
Thefollowing table describes the typographic changes that are used in this book.
SymbolConventions
Thefollowing table explains symbols that might be used in this book.
Documentation, Support, andTraining
Searching Sun Product Documentation
Third-PartyWeb Site References
Page
Page
Performance and Monitoring Overview
PerformanceIssues
Conguration
Virtual Servers
Server Farms
64Bit Servers
SSL Performance
Monitoring Server Performance
About Statistics
EnablingStatistics
ToEnable Statistics from the Admin Console
ToEnable Statistics from the CLI
MonitoringCurrent Activity Using the Admin Console
ToMonitor Statistics from the Admin Console
MonitoringCurrent Activity Using the CLI
ToMonitor Statistics from the CLI
Page
Page
MonitoringCurrent Activity Using stats.xml
ToEnable the stats-xml URI from the Admin Console
ToEnable the stats-xml URI from the CLI
ToLimit the stats-xml Statistics Displayedin the URI
ToViewstats-xml Output from the CLI
MonitoringCurrent Activity Using perfdump
ToEnable the perfdump URI from the Admin Console
ToEnable the perfdump URI from the CLI
ToViewthe per fdump Datafrom the CLI
Sampleperfdump Output
Page
UsingPerformance Buckets
Conguration
PerformanceReport
MonitoringCurrent Activity Using the Java ES MonitoringConsole
Page
TuningSun Java System Web Server
GeneralTuning Tips
UnderstandingThreads, Processes, and Connections
Connection-Handling Overview
LowLatency and High Concurrency Modes
DisabledThread Pools
ConnectionHandlingmagnus.conf Directives for NSAPI
CustomThread Pools
TheNative Thread Pool
ProcessModes
Single-ProcessMode
Multi-ProcessMode
MaxProcs(UNIX/Linux)
MappingWeb Server 6.1 Tuning Parametersto Web Server 7.0
Page
UsingMonitoring Data to Tune YourServer
Connection Queue Information
Current/Peak /Limit Queue Length
TotalConnections Queued
AverageQueue Length
AverageQueuing Delay
TicksSpent
HTTP Listener (Listen Socket) Information
Address
AcceptorThreads
DefaultVirtual Server
Keep-AliveInformation
Keep-AliveCount
Keep-AliveHits
Keep-AliveFlushes
Keep-AliveRefusals
Keep-AliveTimeouts
Keep-AliveTimeout
Keep-AlivePoll Interval
Keep-AliveThreads
Tuningfor HTTP 1.0-Style Workload
Tuningfor HTTP 1.1-Style Workload
Session Creation( Thread)Information
MaximumThreads (Maximum Simultaneous Requests)
Tuning
FileCache Information (Static Content)
AcceleratorEntries
AcceleratableRequests
AcceleratableResponses
AcceleratorHit Ratio
FileCache Enabled
FileCache Entries
FileCache Hit Ratio (Cache Hits / Cache Lookups)
MaximumAge
MaximumHeap Cache Size
Usingthe nocache Parameter
Example
FileCache Dynamic Control and Monitoring
ToControl and Monitor the FileCache
ThreadPool Information
NativeThread Pool
Idle/Peak /Limit
WorkQueue Length /Peak /Limit
NativePoolStackSizeDirective
NativePoolQueueSizeDirective
NativePoolMaxThreadsDirective
NativePoolMinThreadsDirective
DNS CacheInformation
Enabled
CacheEntries (Current Cache Entries / Maximum Cache Entries)
HitRatio (Cache Hits / Cache Lookups)
AsyncDNS Enabled/Disabled
JavaVirtual Machine (JVM) Information
JavaHeap Tuning
WebApplication Information
ToAccessWeb Application Statistics From the Admin Console
WebApplication Statistics
JDBC ResourceInformation
JDBCResource Statistics Available Through the AdminConsole
Connections
FreeConnections
LeasedConnections
QueuedConnections
JDBCResource Statistics Not Available in the Admin Console
JDBCResource Connection Settings
Page
Tuningthe ACL User Cache
TuningJava Web Application Performance
UsingPrecompiled JSPs
UsingSer vlet/JSP Caching
Conguringthe Java Security Manager
ConguringClass Reloading
AvoidingDirectories in the Classpath
Conguringthe Web ApplicationsSession Settings
TuningmaxLocks (UNIX/Linux)
TuningMMapSessionManager (UNIX/Linux)
TuningCGI Stub Processes (UNIX/Linux)
Usingnd-pathinfo-for ward
Usingnostat
UsingBusy Functions
Page
Common Performance Problems
check-acl Server Application Functions
Low-Memory Situations
TooFew Threads
Cache Not Utilized
Keep-Alive Connections Flushed
Log FileModes
Platform-Specic Issues andTips
Solaris Platform-Specic Issues
FilesOpen in a Single Process (File Descriptor Limits)
Failureto Connect to HTTP Server
Connection Refused Errors
TuningTCP Buering
Usingthe Solaris Network Cache and Accelerator (SNCA)
ToEnable SNCA to WorkWith Web Server
MaximumThreads and Queue Size
Solaris File SystemTuning
High FileSystem Page-In Rate
ReduceFile System Housekeeping
LongS erviceTimes on Busy Disks or Volumes
Solaris Platform-Specic PerformanceMonitoring
Short-TermSystem Monitoring
Long-TermSystemMonitoring
IntelligentMonitoring
Solaris 10 Platform-SpecicTuning Information
TuningSolaris for Performance Benchmarking
TuningUltraSPARC T1Based Systemsfor Performance Benchmarking
TuningOperating System and TCP Settings
Disk Conguration
NetworkConguration
WebServer Start O ptions
Page
Sizing and Scaling YourServer
64-Bit Server
Processors
Memory
DriveSpace
Networking
Scalability Studies
Study Goals
Study Conclusion
Hardware
Software
Congurationand Tuning
TCP/IPtuning:
NetworkConguration
Thefollowing example shows psrinfo outputbefore running the script:
Thefollowing example shows psrinfo outputafter running the script:
5 no-intr since 12/07/2006 09:17:04 .................
WebServer Tuning
Thefollowing table shows the tuning settings used for the Web Server.
Thefollowing table shows the SSL session cache tuning settings used for the SSL tests.
PerformanceTests and Results
StaticContent Test
Thefollowing table shows the static content scalability results.
Thefollowing is a graphical representation of static content scalability results.
Dynamic ContentTest: Servlet
Dynamic ContentTest: C CGI
Thefollowing table shows the results of the dynamic content test for C CGI.
Thefollowing is a graphical representation of C CGI scalability results.
Dynamic ContentTest: Perl CGI
Dynamic ContentTest: NSAPI
PHP Scalability Tests
PHPScalability with Fast CGI
Thefollowing table shows the results of the PHP with FastCGI test.
Thefollowing is a graphical representation of PHP scalability with Fast CGI.
PHPScalability with NSAPI
Thefollowing table shows the Web Server tuning settings for the PHP with NSAPI test.
Thefollowing table shows the results of the PHP with NSAPI test.
SSL PerformanceTest: Static Content
SSL PerformanceTest: Perl CGI
SSL PerformanceTest: C CGI
Thefollowing is a graphical representation of C CGI scalability with SSL.
SSL PerformanceTest: NSAPI
E-CommerceWeb Application Test
Hardwarefor E-Commerce Test
Congurationand Tuning forE- CommerceTest
E-commerceApplication Description
DatabaseCardinality
Workload
Thefollowing table shows the e-commerce web application test results.
Thefollowing is a graphical representation of e-commerce web application scalability.
Index
Numbersand Symbols
A
B
C
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W