microsoft press internet information services iis 70 resource kit phần 9 potx

82 503 0
microsoft press internet information services iis 70 resource kit phần 9 potx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

620 Part IV: Troubleshooting and Performance Table 17-4 Memory Counters to Measure Counter Name Description Process(w3wp)\Virtual Bytes The current size, in bytes, of the virtual address space the process is using Use of virtual address space does not necessarily imply corresponding use of either disk or main memory pages Virtual space is finite, and the process can limit its ability to load libraries Process(w3wp)\Working Set The current size, in bytes, of the Working Set of this process The Working Set is the set of memory pages touched recently by the threads in the process If free memory in the computer is above a threshold, pages are left in the Working Set of a process even if they are not in use When free memory falls below a threshold, pages are trimmed from Working Sets If they are needed, they will then be soft-faulted back into the Working Set before leaving main memory Impact of Constraints When a server is low on RAM, it uses the paging file, causing the worker process to have to retrieve data from disk, slowing down performance This can be an expensive operation, because the application has introduced another potential bottleneck, Disk I/O (Input/Output) An application that is forced to use a portion of the information swapped to the paging file has added latency and causes the server to use more resources Generally, with 32-bit operating systems, the recommended approach is to set the paging file size to be 1.5 times the amount of RAM In a 64-bit environment, you can set the operating system to automatically handle the paging file size Countermeasures One countermeasure against memory pressure is to verify that your Web server paging file is configured properly and optimized on a separate set of disks Spreading a paging file across separate physical disks enables you to improve paging file performance by using drives that not contain your site’s content or log files Although these steps are basic, they can go a long way toward helping your application’s performance They can also save your company money by getting the most out of your servers Understanding how many resources a typical transaction uses is important This number can be valuable when you calculate what your production environment and monitoring thresholds will be If your database holds a lot of detail data, you can calculate how the data might grow over a period of months or years and how this might impact your application It might perform well at first, but you might find that as the amount detail data grows, your application will be slower, and server performance will suffer Chapter 17: Performance and Tuning 621 Hard Disks As faster and faster disks evolve, chances of the disk being the issue become less likely Redundant Array of Inexpensive Disk (RAID) and striping technologies are not really IISrelated performance tricks, but they can help increase your server’s overall performance The real effect on hard disks depends on how much RAM your machine has What Causes Hard Disk Pressure? Typically, pressure is a matter of the amount of disk reads and writes A Web server that has a high ratio of reads to writes tends to perform better The Reliability and Performance Monitor is a great tool for analyzing the total number of reads and writes a Web server generates If your application requires a lot of writes, you should have faster disks and a RAID implementation to support them Disk bottlenecks can be improved by using Kernel-mode caching, which greatly eliminates the number of direct reads from the disk Hard Disk Counters to Monitor See Table 17-5 for a list of common hard disk counters that help identify which processes and how much of the server resources are being used when your IIS 7.0 server is experiencing hard disk-related issues Table 17-5 Disk Counters to Measure Counter Name Description PhysicalDisk(_Total)\% Disk Time The percentage of elapsed time that the selected disk drive was busy servicing read or write requests PhysicalDisk(_Total)\% Disk Read Time The percentage of elapsed time that the selected disk drive was busy servicing read requests PhysicalDisk(_Total)\% Disk Write Time The percentage of elapsed time that the selected disk drive was busy servicing write requests PhysicalDisk(_Total)\Current Disk Queue Length The number of requests outstanding on the disk at the time the performance data is collected It also includes requests in service at the time of the collection This is an instantaneous snapshot, not an average over the time interval Multispindle disk devices can have multiple requests that are active at one time, but other concurrent requests are awaiting service This counter might reflect a transitory high or low queue length, but if there is a sustained load on the disk drive, it is likely that this will be consistently high Requests experience delays proportional to the length of this queue minus the number of spindles on the disks For good performance, this difference should average less than two 622 Part IV: Troubleshooting and Performance Table 17-5 Disk Counters to Measure Counter Name Description PhysicalDisk\Disk Reads/sec The rate of read operations on the disk PhysicalDisk\Disk Writes/sec The rate of write operations on the disk PhysicalDisk\Avg Disk Bytes/Read The average number of bytes transferred from the disk during read operations PhysicalDisk\Avg Disk Bytes/Write The average number of bytes transferred to the disk during write operations Impact of Constraints Your application’s performance and throughput will be affected if your IIS 7.0 server does not have enough RAM When a server has to start writing and retrieving information from disk, there will be latency to your application’s performance Disk paging can be an expensive task, and using disk performance counters can help you measure how your server is performing Countermeasures You can implement a few countermeasures to help prevent disk latency Here are some things to keep in mind: ■ Choose the correct RAID for your server(s) ■ When implementing RAID, select a hardware controller over a software RAID solution It’s definitely worth the investment ■ You can spread your paging file across multiple disks ■ More spindles help with performance Several smaller disks are faster than one large drive ■ Speed is very important Faster disks help with performance, and in the long run they are worth the few extra dollars they cost ■ Definitely monitor performance by using the counters mentioned in this section ■ Keep your disks from becoming fragmented ■ For a Web server, have the logging and content on separate disk from the operating system Logging can be an expensive operation, so try to move logging to a separate set of disks Alternatively, offload it to a remote server Note To help you out with logging, we’d like to point out an option called httpLogging, which enables you to control how much data is logged to your IIS log files One attribute of httpLogging, selectiveLogging, enables you to control which status codes are logged to your IIS Logs By default, the selectiveLogging option is set to LogAll, which means log all status codes You can set the value to LogSuccessful, which logs all HTTP status codes from 100 to 399 The LogError option logs HTTP status codes from 400 to 999 The following example shows you Chapter 17: Performance and Tuning 623 how to adjust the selectLogging setting by using Appcmd You can also set httpLogging to dontLog, which will prevent any logs from being generated Logging is discussed more in Chapter 15, “Logging.” //Code sample to set the selectiveLogging attribute using Appcmd //LogAll is the default, LogSuccessful and LogError are the other options Appcmd set config -section:httpLogging -selectiveLogging:LogSuccessful //Here is the part of the schema that controls the system.webServer/ httpLogging/selectiveLogging attribute Turn off unnecessary disk intensive services such as Index Server or other search type functions if the service is not in use These types of services can continually index content and take up precious disk cycles Tuning your hard disk subsystem is one issue you’ll probably not have to deal with when working to optimize your system Providing your server with enough RAM can go a long way towards ensuring that your hard disk is not the cause when a problem arises Network One of the best performance enhancements in Microsoft Windows Server 2008 is a complete redesign of the Transmission Control Protocol/Internet Protocol (TCP/IP) stack, also known as the Next Generation TCP/IP stack The TCP/IP stack has been redesigned to enable high-speed multi-gigabit capabilities without consuming all of the CPU power and resources on the server It integrates security products into the Windows platform and makes it more manageable In addition, the TCP/IP stack has been redesigned to make it more easily serviced, to add capabilities, and to let third-party independent software vendors (ISVs) add capabilities to it (specifically in the firewall and antivirus categories) What Causes Network Pressure? In a perfect world, bandwidth restrictions would not be an issue Switched networks as well as GB and greater network speeds have helped, but network utilization still can be a bottleneck How you deal with it can make your applications successful or not The increasing availability of high-speed networks and broadband connections does not guarantee a low latency experience 624 Part IV: Troubleshooting and Performance High demand for content such as video streaming or audio files can lead to pressure on the network The Internet is one big wide area network, and it takes only one slow connection to become saturated and cause packet loss When packet loss occurs, higher latency and slower response times for applications can occur Low latency and slow application response are less likely in a local area network However, the network is only as strong as the weakest link Network Counters to Monitor See Table 17-6 for a list of common network counters used to identify network-related issues on your IIS 7.0 server Table 17-6 Network Counters to Measure Counter Name Description Network Interface(NICNAME)\Bytes Total/sec The rate at which bytes are sent and received over each network adapter, including framing characters Network Interface\Bytes Total/sec is a sum of Network Interface\Bytes Received/sec and Network Interface\Bytes Sent/sec Network Interface(NICNAME)\Current Band- An estimate of the current bandwidth of the netwidth work interface in bits per second (BPS) For interfaces that not vary in bandwidth or for those where no accurate estimation can be made, this value is the nominal bandwidth Impact of Constraints Dealing with slow router points or switches that are saturated can constrain how you provide services and keep the network functional Using QoS (Quality of Service) and scheduling network-intensive operations during off-hours can help the impact on your network Having tools in place to monitor your network can help you spot trends and understand if your network is operating efficiently The Next Generation TCP/IP stack supports the IETF draft RFC 4898, “TCP Extended Statistics MIB,” which defines extended performance statistics for TCP By analyzing ESTATS on a connection, you can determine whether a connection’s performance is based on the sending application, the receiving application, or the network ESTATS is disabled by default and can be enabled per connection With ESTATS, non-Microsoft independent software vendor (ISVs) can create powerful diagnostics and network throughput analysis applications Tcpanalyzer.exe, which is available in the Windows Vista SDK, is a diagnostic tool based on ESTATS The Explicit Congestion Notification (ECN) feature also enhances performance When a TCP segment is lost, TCP assumes that the segment was lost due to congestion at a router, and it performs congestion control, dramatically lowering the TCP sender’s transmission rate With ECN support on both TCP peers and in the routing infrastructure, a router experiencing congestion mark packets as it forwards them TCP peers receiving marked packets lower their Chapter 17: Performance and Tuning 625 transmission rate to ease congestion and prevent segment losses Detecting congestion before packet losses are incurred increases the overall throughput between TCP peers ECN is not enabled by default To enable ECN, run this command: netsh interface tcp set global ecncapability=enabled Countermeasures How you know what your network utilization is? Right-click in the Start Bar, select Task Manager, and navigate to the Networking tab Select the network interface you would like to view and check its network utilization statistics If your primary network card is close to 100 percent, the card is likely a bottleneck in the performance of your application Generally, you should start to investigate if network utilization is around 50 percent Figure 17-3 shows how Task Manager presents network utilization statistics Figure 17-3 Network utilization in Windows Task Manager The Next Generation TCP/IP stack is a complete redesign of TCP/IP functionality for both IPv4 and IPv6 that meets the connectivity and performance needs of today’s varied networking environments and technologies The following features are new or enhanced: ■ Receive Window Auto-Tuning ■ Compound TCP ■ Enhancements for high-loss environments ■ Neighbor Unreachability Detection for IPv4 ■ Dead Gateway Detection 626 Part IV: Troubleshooting and Performance ■ Path Maximum Transmission Unit (PMTU) Black Hole Router Detection ■ Routing Compartments ■ Network Diagnostics Framework Support ■ Windows Filtering Platform ■ Explicit Congestion Notification With its many new features and enhancements, Windows Server 2008 should help keep network pressure at a minimum For more information, see the article posted on TechNet called “New Networking Features in Windows Server 2008 and Windows Vista” at http://technet.microsoft.com/en-us/library/bb726965.aspx Application-Level Counters Microsoft provides several key application-level counters that can be useful in troubleshooting your application Table 17-7 presents a subset of counters that can help troubleshoot ASP.NET and Web-related issues Table 17-7 Application Counters Counter Name Description NET CLR Exceptions(w3wp)\# of Exceps Thrown The number of exceptions thrown per second / sec These include both NET exceptions and unmanaged exceptions that get converted into NET exceptions (e.g., a null pointer reference exception in unmanaged code would get rethrown in managed code as a NET System.NullReferenceException) This counter includes both handled and unhandled exceptions Exceptions should only occur in rare situations and not in the normal control flow of the program; this counter was designed as an indicator of potential performance problems due to large (>100s) rate of exceptions thrown This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval .NET CLR Jit(w3wp)\% Time in Jit The percentage of elapsed time spent in JIT compilation since the last JIT compilation phase This counter is updated at the end of every JIT compilation phase A JIT compilation phase is the phase when a method and its dependencies are being compiled .NET CLR Jit(w3wp)\IL Bytes Jitted / sec The total IL bytes jitted since the start of the application This counter is exactly equivalent to the “Total # of IL Bytes Jitted” counter Chapter 17: Performance and Tuning 627 Table 17-7 Application Counters Counter Name Description NET CLR Loading(w3wp)\% Time Loading NET CLR Loading(w3wp)\Current appdomains The current number of AppDomains loaded in this application AppDomains (application domains) provide a secure and versatile unit of processing that the CLR can use to provide isolation between applications running in the same process .NET CLR Loading(w3wp)\Current Assemblies The current number of Assemblies loaded across all AppDomains in this application If the Assembly is loaded as domain-neutral from multiple AppDomains, then this counter is incremented once only Assemblies can be loaded as domainneutral when their code can be shared by all AppDomains, or they can be loaded as domain-specific when their code is private to the AppDomain .NET CLR LocksAndThreads(w3wp)\Queue Length / sec The total number of times threads in the CLR have attempted to acquire a managed lock unsuccessfully Managed locks can be acquired in many ways—by the “lock” statement in C#, or by calling System.Monitor.Enter, or by using MethodImplOptions.Synchronized custom attribute .NET CLR LocksAndThreads(w3wp)\Total # of Contentions The total number of times threads in the CLR have attempted to acquire a managed lock unsuccessfully Managed locks can be acquired in many ways—by the “lock” statement in C#, or by calling System.Monitor.Enter, or by using MethodImplOptions.Synchronized custom attribute .NET CLR Memory(w3wp)\% Time in GC The percentage of elapsed time that was spent in performing a garbage collection (GC) since the last GC cycle This counter is usually an indicator of the work done by the Garbage Collector on behalf of the application to collect and compact memory This counter is updated only at the end of every GC, and the counter value reflects the last observed value; it is not an average .NET CLR Memory(w3wp)\# Total Committed Bytes The amount of virtual memory (in bytes) currently committed by the Garbage Collector (Committed memory is the physical memory for which space has been reserved on the disk paging file.) NET CLR Memory(w3wp)\# Bytes in all Heaps The sum of four other counters—Gen Heap Size, Gen Heap Size, Gen Heap Size, and the Large Object Heap Size This counter indicates the current memory allocated in bytes on the GC Heaps 628 Part IV: Troubleshooting and Performance Table 17-7 Application Counters Counter Name Description NET CLR Memory(w3wp)\# Gen Collections The number of times the generation objects (youngest; most recently allocated) are garbage collected (Gen GC) since the start of the application Gen GC occurs when the available memory in generation is not sufficient to satisfy an allocation request This counter is incremented at the end of a Gen GC Higher generation GCs include all lower generation GCs This counter is explicitly incremented when a higher generation (Gen or Gen 2) GC occurs _Global_ counter value is not accurate and should be ignored This counter displays the last observed value .NET CLR Memory(w3wp)\# Gen Collections The number of times the generation objects are garbage collected since the start of the application The counter is incremented at the end of a Gen GC Higher generation GCs include all lower generation GCs This counter is explicitly incremented when a higher generation (Gen 2) GC occurs _Global_ counter value is not accurate and should be ignored This counter displays the last observed value .NET CLR Memory(w3wp)\# Gen Collections The number of times the generation objects (older) are garbage collected since the start of the application The counter is incremented at the end of a Gen GC (also called full GC) _Global_ counter value is not accurate and should be ignored This counter displays the last observed value .NET CLR Memory(w3wp)\# Induced GC The peak number of times a garbage collection was performed because of an explicit call to GC.Collect It’s a good practice to let the GC tune the frequency of its collections .NET CLR Memory(w3wp)\Allocated Bytes/sec The rate of bytes per second allocated on the GC Heap This counter is updated at the end of every GC, not at each allocation This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval Chapter 17: Performance and Tuning 629 Table 17-7 Application Counters Counter Name Description NET CLR Memory(w3wp)\Finalization Survivors The number of garbage collected objects that survive a collection because they are waiting to be finalized If these objects hold references to other objects, then those objects also survive but are not counted by this counter; the “Promoted Finalization-Memory from Gen 0” and “Promoted Finalization-Memory from Gen 1” counters represent all the memory that survived due to finalization This counter is not a cumulative counter; it’s updated at the end of every GC with count of the survivors during that particular GC only This counter was designed to indicate the extra overhead that the application might incur because of finalization .NET CLR Memory(w3wp)\Gen Heap Size The maximum bytes that can be allocated in generation (Gen 0); it does not indicate the current number of bytes allocated in Gen A Gen GC is triggered when the allocations since the last GC exceed this size The Gen size is tuned by the Garbage Collector and can change during the execution of the application At the end of a Gen collection, the size of the Gen heap is in fact bytes; this counter displays the size (in bytes) of allocations that would trigger the next Gen GC This counter is updated at the end of a GC; it’s not updated on every allocation .NET CLR Memory(w3wp)\Gen Heap Size The current number of bytes in generation (Gen 1); this counter does not display the maximum size of Gen Objects are not directly allocated in this generation; they are promoted from previous Gen GCs This counter is updated at the end of a GC; it’s not updated on every allocation .NET CLR Memory(w3wp)\Gen Heap Size The current number of bytes in generation (Gen 1); this counter does not display the maximum size of Gen Objects are not directly allocated in this generation; they are promoted from previous Gen GCs This counter is updated at the end of a GC; it’s not updated on every allocation .NET CLR Memory(w3wp)\Large Object Heap Size The current size of the Large Object Heap in bytes Objects greater than 20 kilobytes (KB) are treated as large objects by the Garbage Collector and are directly allocated in a special heap; they are not promoted through the generations This counter is updated at the end of a GC; it’s not updated on every allocation Appendix E IIS 7.0 Default Settings and Time-Outs/Thresholds In this appendix: ASP.NET 687 IIS 694 Management 714 Application Pool Defaults 717 This appendix includes the default settings and time-outs for all items in Internet Information Services (IIS) 7.0 The IIS Manager categories are grouped under three major subcategories: ASP.NET, IIS, and Management The following sections provide tables that define each of these IIS Manager categories Categories without default values are also listed in this appendix, outside of the table format The fourth section contains all default Application Pool settings ASP.NET The ASP.NET section in IIS Manager has the following 13 categories Three of the settings are site-level only: ■ NET Compilation ■ NET Globalization ■ NET Profile (site-level option only; No Values by default; data can be added as necessary) ■ NET Roles (site-level option only; No Values by default; data can be added as necessary) ■ NET Trust Levels ■ NET Users (site-level option only; No Values by default; data can be added as necessary) ■ Application Settings (No Values by default; data can be added as necessary) ■ Connection Strings ■ Machine Key ■ Pages and Controls 687 688 Part V: Appendices ■ Providers ■ Session State ■ SMTP E-mail Tables E-1 through E-9 describe each of these categories and all default values as well as minimum and maximum values, if applicable Table E-1 NET Compilation Category Description Subcategory Default Value Batch Batch Compilations True Maximum File Size 1000 Maximum Size Of Batch Behavior 1000 Time-out (hh:mm:ss) 00:15:00 Debug False Number Of Recompiles 15 Url Line Pragmas Visual Basic NET False Assemblies True Strict Compile Option General Explicit Compile Option False [0] Mscorlib [1] System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089 [2] System Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5 0a3a [3] System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5 0a3a [4] System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089 Min Max Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds 689 Table E-1 NET Compilation Category Description Subcategory Default Value [5] System.Web Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5 0a3a [6] System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089 [7] System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5 0a3a [8] System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5 0a3a [9] System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5 0a3a [10] * [11] System.Runtime Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, processorArchitecture=MSIL Min Max 690 Part V: Appendices Table E-1 NET Compilation Category Description Subcategory Default Value [12] System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089, processorArchitecture=MSIL [13] System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089 Default Language Min Max vb Temporary Directory Table E-2 NET Globalization Category Description Culture Culture Invariant Language (Invariant Country) Enable Client Based Culture False UI Culture Invariant Language (Invariant Country) File Windows-1252 Requests utf-8 Response Headers utf-8 Responses utf-8 Encoding Subcategory Default Value Min Max Min Max Table E-3 NET Trust Levels Category Description Subcategory Trust Level Default Value Full (internal) Table E-4 Connection Strings Name Connection String Entry Type LocalSqlServer data source=.\SQLEXPRESS;Integrated Security=SSPI; Inherited AttachDBFilename=|DataDirectory|aspnetdb.mdf; User Instance=true Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds Table E-5 Machine Key Category Description Subcategory Default Value Encryption Method Max Sha1 Decryption Method Min Auto Validation Key Checked Generate a unique key for each application Checked and AutoGenerate, IsolateApps Automatically generate at run time Checked Generate a unique key for each application Decryption Key Automatically generate at run time Checked and AutoGenerate, IsolateApps Table E-6 Pages and Controls Category Description Behavior Buffer User Interface Subcategory Default Value True Master Page File Style Sheet Theme Theme View State Enable Authenticated View State True Enable View State Compilation True Maximum Page State Field Length –1 System.Web UI.Page Base Type For User Controls System.Web UI.UserControl Compilation Mode General Base Type For Pages Always Namespaces [0] System [1] System Collections [2] System Collections Specialized Min Max 691 692 Part V: Appendices Table E-6 Pages and Controls Category Description Subcategory Default Value [3] System Configuration [4] System.Text [5] System.Text RegularExpressions [6] System.Web SessionState [9] System.Web Security [10] System.Web Profile [11] System.Web.UI [12] System.Web.UI WebControls [13] System.Web.UI WebControls WebParts [14] Services System.Web Caching [8] Max System.Web [7] Min System.Web.UI HtmlControls Enable Session State True Validate Request True Table E-7 Providers Name Type Entry Type AspNetSqlRoleProvider SqlRoleProvider (System.Web.Security.SqlRoleProvider) Inherited AspNetWindowsTokenRoleProvider WindowsTokenRoleProvider (System.Web.Security WindowsTokenRoleProvider) Inherited AspNetSqlMembershipProvider (.NET Users) SqlMembershipProvider (System.Web.Security SqlMembershipProvider) Inherited AspNetSqlProfileProvider (.NET Profile) SqlProfileProvider (System.Web.Security SqlProfile.Provider) Inherited Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds 693 Table E-8 Session State Category Description Session State Mode Settings Subcategory Not enabled In process Default Value Min Selected Custom State Server Connection string tcpip=loopback:42424 Time-out (in seconds) 10 SQL Server Connection string Data source=localhost; Integrated Security=SSPI Time-out (in seconds) 30 Enable custom database Cookie Settings Mode Use Cookies Name ASP.NET_SessionID Time-out (in minutes) 20 Regenerate expired session ID User hosting identity for impersonation Checked Table E-9 SMTP E-Mail Category Description Subcategory Default Value E-mail address Deliver e-mail to SMTP server SMTP Server Use localhost Port: Authentication Settings 25 Not Required Selected Windows Specify credentials Store e-mail in pickup directory Min Max Max 694 Part V: Appendices IIS The IIS section in IIS Manager has 21 categories total, and of the settings are server-level only: ■ ASP ■ Authentication ■ Authorization Rules ■ CGI ■ Compression ■ Default Document ■ Directory Browsing ■ Error Pages ■ Failed Request Tracing Rules ■ Handler Mappings ■ HTTP Redirect ■ HTTP Response Headers ■ IPv4 Address and Domain Restrictions ■ ISAPI and CGI Restrictions ■ ISAPI Filters ■ Logging ■ MIME Types ■ Modules ■ Output Caching ■ Server Certificates (server-level only option) ■ Worker Processes (server-level only option) Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds 695 Tables E-10 through E-26 describe each of these categories and all default values, as well as maximum and minimum values, if applicable Table E-10 ASP Category Description Behavior Code Page Enable Buffering True Enable Chunked Encoding True Enable HTML Fallback True Enable Parent Paths False Limit Properties Subcategory Default Value Min Max Client Connection Test Interval 00:00:03 Maximum Requesting Entity Test Interval 200000 2,147,748,3647 Queue Length 3000 2,147,748,3647 Request Queue Time-out 00:00:00 2,147,748,3647 2,147,748,3647 Response Buffering 4194304 Limit Script Time-out 00:01:30 Threads Per Processor Limit 25 Locale ID Restart On Config Change True Compilation Debugging Properties Calculate Line Numbers True Catch COM Component Exceptions True Enable Client-side Debugging False Enable Log Error Requests True Enable Server-side Debugging False 696 Part V: Appendices Table E-10 ASP Category Description Subcategory Default Value Min Max Log Errors to NT Log False Run On End Functions Anonymously True Script Error Message An error occurred on the server when processing the URL Please contact the system administrator

If you are the system administrator please click here to find out more about this error Send Errors To Browser False 2,147,748,3647 Maximum Memory 500 Cached Files 2,147,748,3647 Maximum Script Engines Cached 2,147,748,3647 Script Language Services Caching Properties VBScript Cache Directory Path %SystemDrive%\ inetpub\ temp\ASP Compiled Templates Enable Type Library True Caching Maximum Disk Cached Files Com Plus Properties 2000 250 Enable Side by Side False Component Enable Tracker False Execute In MTA False Honor Component Threading Module False Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds Table E-10 ASP Category Description Subcategory Default Value Partition ID Min Max 00000000-00000000-0000000000000000 Side By Side Component Use Partition False Session Properties Enable Session State True Maximum Sessions 4294967295 New ID On Secure Connection True Time-out 00:20:00 Table E-11 Authentication Name Status Response Type Active Directory Client Certificate Authentication Disabled HTTP 401 Challenge Anonymous Authentication Enabled ASP.NET Impersonation Disabled Basic Authentication Disabled HTTP 401 Challenge Digest Authentication Disabled HTTP 401 Challenge Forms Authentication Disabled HTTP 302 Login/Redirect Windows Authentication Disabled HTTP 401 Challenge Table E-12 Authorization Rules Mode Users Allow All Users Roles Verbs Entry Type Local Table E-13 CGI Category Description Behavior Time-out (hh:mm:ss) 00:15:00 Use New Console For Each Invocation False Impersonate User True Security Subcategory Default Value Min Max 697 698 Part V: Appendices Table E-14 Compression Category Description Subcategory Default Value Min Max Enable dynamic content compression Enable static content compression Checked Static Only compress compression files larger than (in bytes): Checked; 256 Cache directory: %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files Per application pool disk space limit (in MB): 100 Table E-15 Default Document Name Entry Type Default.htm Local Default.asp Local index.htm Local index.html Local iisstart.htm Local default.aspx Local Table E-16 Directory Browsing Name Subcategory Default Value Time Checked Size Checked Extension Checked Date Checked Long date Table E-17 Error Pages Status Code Path Type Entry Type 401 %SystemDrive%\inetpub\custerr\\401.htm File Local 403 %SystemDrive%\inetpub\custerr\\403.htm File Local 404 %SystemDrive%\inetpub\custerr\\404.htm File Local Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds Table E-17 Error Pages Status Code Path Type Entry Type 405 %SystemDrive%\inetpub\custerr\\405.htm File Local 406 %SystemDrive%\inetpub\custerr\\401.htm File Local 412 %SystemDrive%\inetpub\custerr\\412.htm File Local 500 %SystemDrive%\inetpub\custerr\\500.htm File Local 501 %SystemDrive%\inetpub\custerr\\501.htm File Local 502 %SystemDrive%\inetpub\custerr\\502.htm File Local Failed Request Tracing Rules No Values by default Data can be added as necessary Table E-18 Handler Mappings: Group by State Name Path State Path Type Handler Entry Type CGI-exe ISAPI-dll *.exe Disabled File CgiModule Local *.dll Disabled File IsapiModule Local ASPClassic *.asp AssemblyResourceLoaderIntegrated Web Resource.axd Enabled File IsapiModule Local Enabled Unspecified System.Web Local Handlers AssemblyResourceLoader AXD-ISAPI-2.0 *.axd Enabled Unspecified IsapiModule HttpRemotingHandlerFactoryrem-Integrated *.rem Enabled Unspecified System Local Runtime Remoting Channels Http.HttpRemotingHand lerFactory, System.Runtime.Remoting, Version=2.0 0.0, Culture=neutral, PublicKeyToken=b77a5c 561934e089 HttpRemotingHandlerFactoryrem-ISAPI-2.0 *.rem Enabled Unspecified IsapiModule Local Local 699 700 Part V: Appendices Table E-18 Handler Mappings: Group by State Name Path State Path Type Handler HttpRemotingHandlerFactorysoap-Integrated *.soap Enabled Unspecified System.Runtime.Remoting Channels Http.HttpRemotingHandlerFactory, System.Runtime Remoting, Version=2.0 0.0, Culture=neutral, PublicKeyToken=b77a5c 561934e089 HttpRemotingHandlerFactorysoap-ISAPI-2.0 *.soap Enabled Unspecified IsapiModule OPTIONSVerbHandler * Enabled Unspecified ProtocolLocal SupportModule PageHandler*.aspx Factory-Integrated Enabled Unspecified System.Web.UI Local PageHandlerFactory PageHandler*.aspx Factory-ISAPI-2.0 Enabled Unspecified IsapiModule Local SecurityCertificate *.cer Enabled File Local SimpleHandlerFactoryIntegrated *.ashx Enabled Unspecified System.Web.UI Local SimpleHandlerFactory SimpleHandler*.ashx Factory-ISAPI-2.0 Enabled Unspecified IsapiModule SSINC-shtm *.shtm Enabled File ServerSideLocal IncludeModule SSINC-shtml *.shtml Enabled File ServerSideLocal IncludeModule SSINC-stm *.stm Enabled File ServerSideLocal IncludeModule IsapiModule Entry Type Local Local Appendix E: IIS 7.0 Default Settings and Time-Outs/Thresholds Table E-18 Handler Mappings: Group by State Name Path State Path Type Handler Entry Type svc-Integrated *.svc Enabled Unspecified System.Service Model Activation HttpHandler, System.Service Model, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c 561934e089 svc-ISAPI-2.0 *.svc Enabled Unspecified %SystemRoot%\Microsoft.NET\ Framework\ v2.0.50727\asp net_isapi.dll TraceHandlerIntegrated trace.axd Enabled Unspecified System.Web Handlers TraceHandler TRACEVerbHandler * Enabled Unspecified ProtocolLocal SupportModule WebAdminHandlerIntegrated WebAdmin.axd Enabled Unspecified System.Web Handlers WebAdminHandler WebServiceHandlerFactoryIntegrated *.asmx Enabled Unspecified System.Web Local Services Protocols WebServiceHandlerFactory, System.Web Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7 f11d50a3a WebServiceHandlerFactoryISAPI-2.0 *.asmx Enabled Unspecified IsapiModule StaticFile * Enabled File or Folder Local Local Local StaticFileLocal Module,Default DocumentModule,DirectoryListModule 701 ... http://go .microsoft. com/fwlink/?LinkID=62 293 &IIS7 0Error=404,0,0x80 0700 02,6001 ■ “The HTTP Status Codes in IIS 7.0,” available at http://go .microsoft. com/fwlink/ ?LinkID=62 293 ■ For more information. .. http://msdn2 .microsoft. com/en-us/ library/ms97 295 9.aspx#monitor_perf_topic12 ■ A white paper titled “Shared Hosting on IIS 7.0” is at http://www .iis. net/articles/ view.aspx /IIS7 /Deploy-an -IIS7 -Server/Deployment-for-Web-Hosters/Shared-Hosting-on -IIS7 ... compress the file and keep it in compressed files cache Requests for compressed Chapter 17: Performance and Tuning 643 content reaching IIS 6.0 after the compression is complete receive a compressed

Ngày đăng: 07/08/2014, 00:22

Tài liệu cùng người dùng

Tài liệu liên quan