colors in this template useful for testing projectors during setup
TRANSCRIPT
Bob Carver MCSE+I,MCTBob Carver MCSE+I,MCTSenior InstructorSenior InstructorARIS CorporationARIS Corporation
How to set up a reliable web How to set up a reliable web server using Internet server using Internet Information Server 5.0 and Information Server 5.0 and Windows 2000Windows 2000
Session PrerequisitesSession Prerequisites
This session assumes that you This session assumes that you understand the fundamentals of:understand the fundamentals of: Basic knowledge of Internet Basic knowledge of Internet
Information ServerInformation Server
This is a level 200 sessionThis is a level 200 session
What You Will Learn TodayWhat You Will Learn Today
Configuration options for process Configuration options for process management in IIS 5.0 and when to management in IIS 5.0 and when to use themuse them
How to configure your web server How to configure your web server to recover automaticallyto recover automatically
How to use logging and application How to use logging and application accounting to tune your web server accounting to tune your web server for optimum reliabilityfor optimum reliability
How Apps Crash IIS 4.0How Apps Crash IIS 4.0
Web Service Failure!!!!
In Process(INETINFO)
Application
Application
Out of Process
Application 1
Out of Process
Application 2
DemonstrationDemonstration
Running Applications In Running Applications In And Out Of Process In IIS And Out Of Process In IIS 4.04.0
Enhancements and New Process Enhancements and New Process Management Options in IIS 5.0Management Options in IIS 5.0
Out of process no longer a big Out of process no longer a big performance penaltyperformance penalty
Only one good reason to run apps Only one good reason to run apps in processin process
A new option, pooled out of process A new option, pooled out of process allows IIS 5.0 to scaleallows 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 ProcessPooled Out Of Process
Pooled out of Process
Application 1
Application 2
Application 3
Web Service Still Working!!!
In processIn process Out of processOut of process Pooled out of Pooled out of
processprocess
Demonstration: Demonstration:
Configuring Process Configuring Process Management in IIS 5.0Management in IIS 5.0
DLL Host
DLL Host
WAMWAM
Pooled out of Process
(DLL Host)
Application
Application
Application
WAMWAM
Application
WAMWAM
Application
In Process(INETINFO
)
Application
Application
WAMWAM
RPC
RPC RPC
RPC
What’s Changed Under the HoodWhat’s Changed Under the Hood
0
100
200
300
400
500
600
120
040
060
080
010
00
# Applications
Co
mm
itte
d M
emo
ry
In-Process
Out-Of-ProcessPooled
Out-Of-ProcessIsolated
Memory ConsumptionMemory Consumption
PerformancePerformance
0
50
100
150
200
250
300
350
# Applications
Req
uests
/ S
ec
In-Process
Out-Of-ProcessPooled
Out-Of-ProcessIsolated
Defaults, Tips, and TricksDefaults, Tips, and Tricks
QuizQuiz When should an app run in process?When should an app run in process? How does IIS 5.0 handle applications How does IIS 5.0 handle applications
by default?by default?
The default gives you the best The default gives you the best protection/performance/scalability protection/performance/scalability tradeofftradeoff
Run mission critical apps out of Run mission critical apps out of process isolated to insulate them process isolated to insulate them from other appsfrom other apps
Questions?Questions?
What Options Do You Have If The What Options Do You Have If The Web Server Crashes?Web Server Crashes?
Issues with IIS 4.0Issues with IIS 4.0 Stopping all services in INETINFO not Stopping all services in INETINFO not
intuitiveintuitive No consistent way to force a shutdown No consistent way to force a shutdown
remotelyremotely Graceful shutdown takes too longGraceful shutdown takes too long Killing IIS not obvious to admins (not in Killing IIS not obvious to admins (not in
GUI, have to use Resource Kit)GUI, have to use Resource Kit) IIS doesn’t recover automatically from IIS doesn’t recover automatically from
crashescrashes
New Restart Options In IIS 5.0New Restart Options In IIS 5.0 Reliable Restart: IIS automatically Reliable Restart: IIS automatically
recoversrecovers Restarts IIS if INETINFO crashesRestarts IIS if INETINFO crashes Graceful shutdown is faster in all casesGraceful shutdown is faster in all cases Graceful shutdown is tried first, then kill!Graceful shutdown is tried first, then kill!
Multiple configuration OptionsMultiple configuration Options MMC (GUI) support for novice adminsMMC (GUI) support for novice admins Command line support for experts, Command line support for experts,
scheduled restarts etc.scheduled restarts etc. Secure remote restartSecure remote restart
DemonstrationDemonstration
How To Configure Reliable How To Configure Reliable Restart In IIS 5.0Restart In IIS 5.0
Defaults, Tips, and TricksDefaults, Tips, and Tricks
Defaults to automatic restartDefaults to automatic restart Run nothing in processRun nothing in process Run most applications in poolRun most applications in pool If your application is mission If your application is mission
critical, run it out of processcritical, run it out of process Add IISRESET to scripts executed Add IISRESET to scripts executed
by monitoring softwareby monitoring software
Questions?Questions?
How To Make IIS 5.0 Work Smarter How To Make IIS 5.0 Work Smarter and More Reliably For Youand More Reliably For You
Logging in IIS 5.0Logging in IIS 5.0 How to turn it onHow to turn it on What to logWhat to log Where to find the logsWhere to find the logs What to look atWhat to look at
DemonstrationDemonstration
How To Enable IIS How To Enable IIS Logging, And Retrieve Logging, And Retrieve The DataThe Data
Optimizing Your Web ServerOptimizing Your Web Server
Application Accounting: A New Application Accounting: A New OptionOption Thread Gating: Giving threads to the Thread Gating: Giving threads to the
applications that need themapplications that need them Process Throttling: CPU Quotas to Process Throttling: CPU Quotas to
keep applications from hogging keep applications from hogging resourcesresources
Thread GatingThread Gating
Takes idle threads from an Takes idle threads from an application that isn’t using them application that isn’t using them and gives them to an app that needs and gives them to an app that needs them.them.
Done automatically by IIS based on Done automatically by IIS based on a variety of factorsa variety of factors
Process ThrottlingProcess Throttling
Keeps CGI and Out Of Process Keeps CGI and Out Of Process apps from hogging resourcesapps from hogging resources
Helpful on multi-site serversHelpful on multi-site servers Three phasesThree phases
100 % Log Event100 % Log Event 150% Reduce Thread Priority150% Reduce Thread Priority 200% Stop all Out of Process Apps200% Stop all Out of Process Apps
Enabled at the Web Site levelEnabled at the Web Site level In Process and Pools not affectedIn Process and Pools not affected
DemonstrationDemonstration
How To Optimize IIS 5.0 For How To Optimize IIS 5.0 For Reliability Using Application Reliability Using Application AccountingAccounting
Defaults, Tips, and TricksDefaults, Tips, and Tricks
Turn on process accounting logsTurn on process accounting logs Remember the limitations of Remember the limitations of
Process ThrottlingProcess Throttling Enabled at Site levelEnabled at Site level Only Out of Process can be throttledOnly Out of Process can be throttled %CPU usage over time can be tricky%CPU usage over time can be tricky
Review logs regularly – find Review logs regularly – find problems before impact youproblems before impact you
Questions?Questions?
ScenariosScenarios Small BusinessSmall Business
Remote admin requires less support staffRemote admin requires less support staff Reliable restart means less after-hours supportReliable restart means less after-hours support
Medium BusinessMedium Business Process pools provide better scalability with Process pools provide better scalability with
less hardwareless hardware Reliable restart may reduce the need for WLBSReliable restart may reduce the need for WLBS
Large BusinessLarge Business Thread Gating and Process Throttling enables Thread Gating and Process Throttling enables
faster and safer multi-site hostingfaster and safer multi-site hosting Process Accounting helps you find problematic Process Accounting helps you find problematic
applicationsapplications
Case Studies Case Studies Lessons learned from the real worldLessons learned from the real world
They will be coming!They will be coming! Microsoft working with many large Microsoft working with many large
clients, and have many lessons clients, and have many lessons learned.learned.
Case studies will be coming, look for Case studies will be coming, look for them on www.microsoft.com/iisthem on www.microsoft.com/iis
Other Resources Other Resources
IIS Resource KitIIS Resource Kit Web Stress Application (Homer)Web Stress Application (Homer)
NT Resource KitNT Resource Kit KillKill TListTList
Windows Load Balancing ServerWindows Load Balancing Server NT EnterpriseNT Enterprise Windows 2000 Advanced ServerWindows 2000 Advanced Server Windows 2000 Data CenterWindows 2000 Data Center
Y2K Status & StrategyY2K Status & Strategy Windows NT 4 Service Pack 5 (8/12/99)Windows NT 4 Service Pack 5 (8/12/99)
English: 3 Known Y2K issues (NNTP, BIOS English: 3 Known Y2K issues (NNTP, BIOS Update, and Outlook Express)Update, and Outlook Express)
Non-English: Same issues as aboveNon-English: Same issues as above All versions compliant pending software All versions compliant pending software
updatesupdates See: See:
http://www.microsoft.com/technet/year2k/prohttp://www.microsoft.com/technet/year2k/product/product.aspduct/product.asp
Windows 2000 Advanced ServerWindows 2000 Advanced Server See the above site after releaseSee the above site after release
SummarySummary
Process management and Process management and performance in IIS 4 and IIS 5performance in IIS 4 and IIS 5
New application protection options New application protection options in IIS 5in IIS 5
Reliable RestartReliable Restart LoggingLogging Application AccountingApplication Accounting
Questions And AnswersQuestions And Answers
For More InformationFor More Information
Refer to the TechNet website at Refer to the TechNet website at www.microsoft.com/technet/www.microsoft.com/technet/
MicrosoftMicrosoft®® Official Curriculum Official Curriculum Course #1557Course #1557 Course #1562Course #1562
Session CreditsSession Credits
Authors: Bob Carver/Cathy BanksAuthors: Bob Carver/Cathy Banks Producer/Editor: Ken KubotaProducer/Editor: Ken Kubota Thanks to Our Microsoft Technical Field Thanks to Our Microsoft Technical Field
personnel who reviewed this session:personnel who reviewed this session: Cathy BanksCathy Banks Mark BermanMark Berman Kelly DuBoisKelly DuBois Scott SwigartScott Swigart