2 Tuning SunJava SystemWeb Server ................................................................................................ 39
General Tuning Tips ........................................................................................................................... 39
Understanding Threads, Processes, and Connections ................................................................... 40
Connection-Handling Overview ............................................................................................... 40
Custom Thread Pools .................................................................................................................. 42
The Native Thread Pool ............................................................................................................... 43
Process Modes .............................................................................................................................. 44
Mapping Web Server 6.1 Tuning Parameters to Web Server 7.0 ................................................... 46
Using Monitoring Data to Tune Your Server .................................................................................. 48
Connection Queue Information ................................................................................................ 49
HTTP Listener (Listen Socket) Information ............................................................................ 51
Keep-Alive Information .............................................................................................................. 53
Session Creation (Thread) Information .................................................................................... 57
File Cache Information (Static Content) .................................................................................. 59
Thread Pool Information ............................................................................................................ 65
DNS Cache Information .............................................................................................................68
Java Virtual Machine (JVM) Information ................................................................................ 70
Web Application Information .................................................................................................... 71
▼ To Access Web Application Statistics From the Admin Console ................................... 71
JDBC Resource Information ...................................................................................................... 72
Tuning the ACL User Cache .............................................................................................................. 77
Tuning Java Web Application Performance .................................................................................... 78
Using Precompiled JSPs .............................................................................................................. 78
Using Servlet/JSP Caching .......................................................................................................... 79
Conguring the Java Security Manager ..................................................................................... 79
Conguring Class Reloading ...................................................................................................... 79
Avoiding Directories in the Classpath ....................................................................................... 80
Conguring the Web Application’s Session Settings ............................................................... 80
Tuning CGI Stub Processes (UNIX/Linux) ..................................................................................... 81
Using nd-pathinfo-forward ............................................................................................................. 82
Using nostat ......................................................................................................................................... 82
Using Busy Functions ......................................................................................................................... 83
3 CommonPerformance Problems ......................................................................................................85
check-acl Server Application Functions ........................................................................................... 85
Contents
SunJavaSystemWebServer7.0Update1 PerformanceTuning,Sizing,and ScalingGuide •4