2 TuningSun JavaSystem Web Server ................................................................................................ 39
GeneralTuning Tips ...........................................................................................................................39
UnderstandingThreads, Processes, and Connections ................................................................... 40
Connection-HandlingOverview ...............................................................................................40
CustomThread Pools ..................................................................................................................42
TheNative Thread Pool ............................................................................................................... 43
ProcessModes ..............................................................................................................................44
MappingWeb Server 6.1 Tuning Parameters to Web Server 7.0 ................................................... 46
UsingMonitoring Data to Tune Your Server .................................................................................. 48
ConnectionQueue Information ................................................................................................49
HTTPListener (Listen Socket) Information ............................................................................ 51
Keep-AliveInformation .............................................................................................................. 53
SessionCreation (Thread) Information .................................................................................... 57
FileCache Information (Static Content) .................................................................................. 59
ThreadPool Information ............................................................................................................65
DNSCache Information .............................................................................................................68
JavaVirtual Machine (JVM) Information ................................................................................70
WebApplication Information .................................................................................................... 71
ToAccess Web Application Statistics From the Admin Console ................................... 71
JDBCResource Information ...................................................................................................... 72
Tuningthe ACL User Cache ..............................................................................................................77
TuningJava Web Application Performance ....................................................................................78
UsingPrecompiled JSPs ..............................................................................................................78
UsingServlet/JSP Caching ..........................................................................................................79
Conguringthe Java Security Manager ..................................................................................... 79
ConguringClass Reloading ......................................................................................................79
AvoidingDirectories in the Classpath ....................................................................................... 80
Conguringthe Web Application’sSession Settings ...............................................................80
TuningCGI Stub Processes (UNIX/Linux) .....................................................................................81
Usingnd-pathinfo-forward .............................................................................................................82
Usingnostat ......................................................................................................................................... 82
UsingBusy Functions .........................................................................................................................83
3 CommonPerformance Problems ......................................................................................................85
check-aclServer Application Functions ...........................................................................................85
Contents
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide 4