Colors In This Template Useful for testing projectors during setup
Bob Carver MCSE+I,MCT Senior Instructor ARIS Corporation How to set up a reliable web server using Internet Information Server 5.0 and Windows 2000
Session Prerequisites This session assumes that you understand the fundamentals of: Basic knowledge of Internet Information Server This is a level 200 session
What You Will Learn Today Configuration options for process management in IIS 5.0 and when to use them How to configure your web server to recover automatically How to use logging and application accounting to tune your web server for optimum reliability
How Apps Crash IIS 4.0 Web Service Failure!!!! In Process (INETINFO) Application Out of Process Application 1 Out of Process Application 2
Demonstration Running Applications In And Out Of Process In IIS 4.0
Enhancements and New Process Management Options in IIS 5.0 Out of process no longer a big performance penalty Only one good reason to run apps in process A new option, pooled out of process allows IIS 5.0 to scale
Pooled out of Process Application 2 In Process (INETINFO ) Application 1 Application 3 Application Out of Process Application 1 Application Out of Process Application 2 Pooled Out Of Process Pooled out of Process Application 1 Application 2 Application 3 Web Service Still Working!!!
In process Out of process Pooled out of process Demonstration: Configuring Process Management in IIS 5.0
DLL Host WAM Pooled out of Process (DLL Host) Applicatio n WAM WAM In Process (INETINFO ) Applicatio n WAM RPC What’s Changed Under the Hood
Memory Consumption
Performance
Defaults, Tips, and Tricks Quiz When should an app run in process? How does IIS 5.0 handle applications by default? The default gives you the best protection/performance/scalability tradeoff Run mission critical apps out of process isolated to insulate them from other apps
Questions?
What Options Do You Have If The Web Server Crashes? Issues with IIS 4.0 Stopping all services in INETINFO not intuitive No consistent way to force a shutdown remotely Graceful shutdown takes too long Killing IIS not obvious to admins (not in GUI, have to use Resource Kit) IIS doesn’t recover automatically from crashes
New Restart Options In IIS 5.0 Reliable Restart: IIS automatically recovers Restarts IIS if INETINFO crashes Graceful shutdown is faster in all cases Graceful shutdown is tried first, then kill! Multiple configuration Options MMC (GUI) support for novice admins Command line support for experts, scheduled restarts etc. Secure remote restart
Demonstration How To Configure Reliable Restart In IIS 5.0
Defaults, Tips, and Tricks Defaults to automatic restart Run nothing in process Run most applications in pool If your application is mission critical, run it out of process Add IISRESET to scripts executed by monitoring software
Questions?
How To Make IIS 5.0 Work Smarter and More Reliably For You Logging in IIS 5.0 How to turn it on What to log Where to find the logs What to look at
Demonstration How To Enable IIS Logging, And Retrieve The Data
Optimizing Your Web Server Application Accounting: A New Option Thread Gating: Giving threads to the applications that need them Process Throttling: CPU Quotas to keep applications from hogging resources
Thread Gating Takes idle threads from an application that isn’t using them and gives them to an app that needs them. Done automatically by IIS based on a variety of factors
Process Throttling Keeps CGI and Out Of Process apps from hogging resources Helpful on multi-site servers Three phases 100 % Log Event 150% Reduce Thread Priority 200% Stop all Out of Process Apps Enabled at the Web Site level In Process and Pools not affected
Demonstration How To Optimize IIS 5.0 For Reliability Using Application Accounting
Defaults, Tips, and Tricks Turn on process accounting logs Remember the limitations of Process Throttling Enabled at Site level Only Out of Process can be throttled %CPU usage over time can be tricky Review logs regularly – find problems before impact you
Questions?
Scenarios Small Business Remote admin requires less support staff Reliable restart means less after-hours support Medium Business Process pools provide better scalability with less hardware Reliable restart may reduce the need for WLBS Large Business Thread Gating and Process Throttling enables faster and safer multi-site hosting Process Accounting helps you find problematic applications
Case Studies Lessons learned from the real world They will be coming! Microsoft working with many large clients, and have many lessons learned. Case studies will be coming, look for them on
Other Resources IIS Resource Kit Web Stress Application (Homer) NT Resource Kit Kill TList Windows Load Balancing Server NT Enterprise Windows 2000 Advanced Server Windows 2000 Data Center
Y2K Status & Strategy Windows NT 4 Service Pack 5 (8/12/99) English: 3 Known Y2K issues (NNTP, BIOS Update, and Outlook Express) Non-English: Same issues as above All versions compliant pending software updates See: duct/product.asp Windows 2000 Advanced Server See the above site after release
Summary Process management and performance in IIS 4 and IIS 5 New application protection options in IIS 5 Reliable Restart Logging Application Accounting
Questions And Answers
For More Information Refer to the TechNet website at Microsoft ® Official Curriculum Course #1557 Course #1562
Session Credits Authors: Bob Carver/Cathy Banks Producer/Editor: Ken Kubota Thanks to Our Microsoft Technical Field personnel who reviewed this session: Cathy Banks Mark Berman Kelly DuBois Scott Swigart