User ManualTable of ContentsSun Java System Web Server 7.0 Update 1 Performance Tuning, Sizing, and Scaling Guide1Preface11Who Should Use This Book11Before You Read This Book11Web Server Documentation Set11Related Books13Default Paths and File Names13Typographic Conventions15Symbol Conventions15Documentation, Support, and Training16Searching Sun Product Documentation16Third-Party Web Site References16Sun Welcomes Your Comments17Performance and Monitoring Overview19Performance Issues19Configuration20Virtual Servers20Server Farms2164–Bit Servers21SSL Performance21Monitoring Server Performance22About Statistics23Enabling Statistics24To Enable Statistics from the Admin Console24To Enable Statistics from the CLI25Monitoring Current Activity Using the Admin Console25To Monitor Statistics from the Admin Console25Monitoring Current Activity Using the CLI26To Monitor Statistics from the CLI26Monitoring Current Activity Using stats.xml29To Enable the stats-xml URI from the Admin Console29To Enable the stats-xml URI from the CLI30To Limit the stats-xml Statistics Displayed in the URI30To View stats-xml Output from the CLI31Monitoring Current Activity Using perfdump31To Enable the perfdump URI from the Admin Console31To Enable the perfdump URI from the CLI32To View the perfdump Data from the CLI33Sample perfdump Output33Using Performance Buckets35Configuration36Performance Report36Monitoring Current Activity Using the Java ES Monitoring Console37Tuning Sun Java System Web Server39General Tuning Tips39Understanding Threads, Processes, and Connections40Connection-Handling Overview40Low Latency and High Concurrency Modes41Disabled Thread Pools41Connection–Handling magnus.conf Directives for NSAPI42Custom Thread Pools42The Native Thread Pool43Process Modes44Single-Process Mode44Multi-Process Mode44MaxProcs (UNIX/Linux)45Mapping Web Server 6.1 Tuning Parameters to Web Server 7.046Using Monitoring Data to Tune Your Server48Connection Queue Information49Current /Peak /Limit Queue Length50Tuning50Total Connections Queued50Average Queue Length51Average Queuing Delay51Ticks Spent51Total Number of Connections Added51HTTP Listener (Listen Socket) Information51Address52Tuning52Acceptor Threads52Tuning52Default Virtual Server53Tuning53Keep-Alive Information53Keep-Alive Count54Tuning55Keep-Alive Hits55Keep-Alive Flushes55Keep-Alive Refusals55Keep-Alive Timeouts55Keep-Alive Timeout55Keep-Alive Poll Interval56Keep-Alive Threads56Tuning for HTTP 1.0-Style Workload56Tuning for HTTP 1.1-Style Workload56Session Creation (Thread) Information57Maximum Threads (Maximum Simultaneous Requests)58Tuning59File Cache Information (Static Content)59Accelerator Entries60Tuning60Acceleratable Requests61Tuning61Acceleratable Responses61Tuning61Accelerator Hit Ratio61Tuning62File Cache Enabled62Tuning62File Cache Entries62Tuning62File Cache Hit Ratio (Cache Hits / Cache Lookups)62Maximum Age62Tuning63Maximum Heap Cache Size63Tuning63Using the nocache Parameter63Example63File Cache Dynamic Control and Monitoring64To Control and Monitor the File Cache64Thread Pool Information65Native Thread Pool66Idle /Peak /Limit66Tuning66Work Queue Length /Peak /Limit66Tuning67NativePoolStackSize Directive67Tuning67NativePoolQueueSize Directive67Tuning68NativePoolMaxThreads Directive68Tuning68NativePoolMinThreads Directive68Tuning68DNS Cache Information68Enabled69Tuning69Cache Entries (Current Cache Entries / Maximum Cache Entries)69Tuning70Hit Ratio (Cache Hits / Cache Lookups)70Async DNS Enabled/Disabled70Java Virtual Machine (JVM) Information70Java Heap Tuning71Web Application Information71To Access Web Application Statistics From the Admin Console71Web Application Statistics72JDBC Resource Information72JDBC Resource Statistics Available Through the Admin Console73Connections74Free Connections74Leased Connections74Queued Connections74JDBC Resource Statistics Not Available in the Admin Console75JDBC Resource Connection Settings75Tuning the ACL User Cache77Tuning Java Web Application Performance78Using Precompiled JSPs78Using Servlet/JSP Caching79Configuring the Java Security Manager79Configuring Class Reloading79Avoiding Directories in the Classpath80Configuring the Web Application’s Session Settings80Tuning maxLocks (UNIX/Linux)80Tuning MMapSessionManager (UNIX/Linux)81Tuning CGI Stub Processes (UNIX/Linux)81Using find-pathinfo-forward82Using nostat82Using Busy Functions83Common Performance Problems85check-acl Server Application Functions85Low-Memory Situations86Too Few Threads86Cache Not Utilized87Keep-Alive Connections Flushed87Log File Modes88Platform-Specific Issues and Tips89Solaris Platform-Specific Issues89Files Open in a Single Process (File Descriptor Limits)89Failure to Connect to HTTP Server90Connection Refused Errors91Tuning TCP Buffering91Using the Solaris Network Cache and Accelerator (SNCA)91To Enable SNCA to Work With Web Server92Maximum Threads and Queue Size92Solaris File System Tuning93High File System Page-In Rate93Reduce File System Housekeeping93Long Service Times on Busy Disks or Volumes93Solaris Platform-Specific Performance Monitoring94Short-Term System Monitoring94Long-Term System Monitoring95“Intelligent” Monitoring95Solaris 10 Platform-Specific Tuning Information95Tuning Solaris for Performance Benchmarking96Tuning UltraSPARC® T1–Based Systems for Performance Benchmarking97Tuning Operating System and TCP Settings97Disk Configuration98Network Configuration98Web Server Start Options99Sizing and Scaling Your Server10164-Bit Server101Processors101Memory102Drive Space102Networking102Scalability Studies103Study Goals103Study Conclusion104Hardware104Software105Configuration and Tuning105Network Configuration106Web Server Tuning107Performance Tests and Results108Static Content Test108Dynamic Content Test: Servlet110Dynamic Content Test: C CGI111Dynamic Content Test: Perl CGI113Dynamic Content Test: NSAPI114PHP Scalability Tests115PHP Scalability with Fast CGI115PHP Scalability with NSAPI117SSL Performance Test: Static Content118SSL Performance Test: Perl CGI119SSL Performance Test: C CGI120SSL Performance Test: NSAPI121E-Commerce Web Application Test122Hardware for E-Commerce Test122Configuration and Tuning for E-Commerce Test123E-commerce Application Description124Database Cardinality124Workload124Index127Size: 1.28 MBPages: 132Language: EnglishOpen manual