■
Adjust gradually
When adjusting a quantitative parameter, make several stepwise changes in succession,
rather than trying to make a drastic change all at once. Different systems face different
circumstances, and you might leap right past your system’s best setting if you change the
value too rapidly.
■
Start fresh
At each major system change, be it a hardware or software upgrade or deployment of a
major new application, review all previous adjustments to see whether they still apply. After
a Solaris upgrade, you should start over with an unmodified
/etc/system
file.
■
Stay informed
Read the
Sun Java System Web Server 7.0 Update 1 Release Notes
and the release notes for
your operating system whenever you upgrade your system. The release notes often provide
updated information about specific adjustments.
Understanding Threads, Processes, and Connections
Before tuning your server, you should understand the connection-handling process in Web
Server. This section includes the following topics:
■
“Connection-Handling Overview” on page 40
■
“Custom Thread Pools” on page 42
■
“The Native Thread Pool” on page 43
■
“Process Modes” on page 44
Connection-Handling Overview
In Web Server, acceptor threads on a listen socket accept connections and put them into a
connection queue. Request processing threads in a thread pool then pick up connections from
the queue and service the requests.
Web Server
Acceptor
Threads
Thread Pool
Requests
Connection
Queue
Request
Processing
Threads
FIGURE 2–1
Web Server Connection Handling
Understanding Threads, Processes, and Connections
Sun Java System Web Server 7.0 Update 1 Performance Tuning, Sizing, and Scaling Guide •
40
Содержание Sun Java System Web Server 7.0
Страница 9: ...Figures FIGURE 2 1 Web Server Connection Handling 40 9 ...
Страница 10: ...10 ...
Страница 18: ...18 ...
Страница 38: ...38 ...
Страница 84: ...84 ...
Страница 100: ...100 ...