iv
Monitoring the Web Server............................................................................................................... 2-3
Using the mod_status Utility...................................................................................................... 2-4
Logging Server Statistics to a File............................................................................................... 2-6
Monitoring JServ Processes.............................................................................................................. 2-8
3 Sizing and ConfigurationSizing your Hardware and Resources............................................................................................. 3-1
Understanding Concurrent Users and User Population............................................................. 3-1
Determining CPU Requirements.................................................................................................... 3-3
Secure Sockets Layer Impact on CPU Requirements.............................................................. 3-3
Determining Memory Requirements.............................................................................................. 3-3
Memory for Non-HTTP Server Software and Operating System......................................... 3-4
HTTP Server Memory Requirements ........................................................................................ 3-4
JServ Memory Requirements...................................................................................................... 3-4
Determining Java Heap Size....................................................................................................... 3-4
Servlet and OracleJSP pages Memory Requirements.............................................................. 3-5
Number of JServ Processes.......................................................................................................... 3-6
4 Optimizing HTTP Server PerformanceTCP Tuning.......................................................................................................................................... 4-2
Linux Tunables................................................................................................................. ............. 4-4
MaxClients ........................................................................................................................................... 4-9
SSL Session Caching........................................................................................................................ 4-10
Impact of Logging............................................................................................................................. 4-10
HTTP/1.1............................................................................................................................................. 4-11
Persistent Connections............................................................................................................... 4-11
Apache Versions................................................................................................................................ 4-14
5 Optimizing Apache JServJServ Overview.................................................................................................................................... 5-2
Optimizing Servlet Performance..................................................................................................... 5-3
Loading Servlet Classes............................................................................................................... 5-3
Automatic Class Reloading......................................................................................................... 5-3
Load Balancing.............................................................................................................................. 5-4