Adjustgradually
Whenadjusting a quantitative parameter, make several stepwise changes in succession,
ratherthan trying to make a drastic change all at once. Dierent systems face dierent
circumstances,and you might leap right past your system’s best setting if you change the
valuetoo rapidly.
Startfresh
Ateach major system change, be it a hardware or software upgrade or deployment of a
majornew application, review all previous adjustments to see whether they still apply. After
aSolaris upgrade, you should start over with an unmodied /etc/system le.
Stayinformed
Readthe Sun Java System Web Server 7.0 Update 1 Release Notes and the release notes for
youroperating system whenever you upgrade your system. The release notes often provide
updatedinformation about specic adjustments.
UnderstandingThreads, Processes, and Connections
Beforetuning your server, you should understand the connection-handling process in Web
Server.This section includes the following topics:
“Connection-HandlingOverview” on page 40
“CustomThread Pools” on page 42
“TheNative Thread Pool” on page 43
“ProcessModes” on page 44

Connection-Handling Overview

InWeb Server, acceptor threads on a listen socket accept connections and put them into a
connectionqueue. Request processing threads in a thread pool then pick up connections from
thequeue and service the requests.
Web Server
Acceptor
Threads
Thread Pool
Requests
Connection
Queue
Request
Processing
Threads
FIGURE2–1 WebServer Connection Handling
UnderstandingThreads,Processes, and Connections
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide 40