Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Chapter11 Monitoring Server Performance

2.639 Aufrufe

Veröffentlicht am

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

Chapter11 Monitoring Server Performance

  1. 1. Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance
  2. 2. Objectives <ul><li>Identify the importance of monitoring server performance </li></ul><ul><li>Use Task Manager to monitor server performance and resource usage </li></ul><ul><li>Use Event Viewer to identify and troubleshoot problems </li></ul><ul><li>Use the Performance console to monitor server performance using both System Monitor and Performance Logs and Alerts </li></ul><ul><li>Optimize server performance through the configuration of service settings </li></ul>
  3. 3. Introduction to Monitoring Server Performance <ul><li>Server performance can deteriorate over time </li></ul><ul><li>Monitoring helps alert you to problems before they become serious </li></ul><ul><li>Normal behavior is called baseline performance </li></ul><ul><li>Built-in tools for monitoring: </li></ul><ul><ul><li>Task Manager </li></ul></ul><ul><ul><li>Event Viewer </li></ul></ul><ul><ul><li>Performance console </li></ul></ul>
  4. 4. Task Manager <ul><li>Fastest way to obtain a system performance snapshot </li></ul><ul><li>Provides high-level information </li></ul><ul><li>Can be accessed through Windows taskbar or Ctrl+Alt+Delete key combination </li></ul><ul><li>Has five main tabs </li></ul><ul><ul><li>Applications </li></ul></ul><ul><ul><li>Processes </li></ul></ul><ul><ul><li>Performance </li></ul></ul><ul><ul><li>Networking </li></ul></ul><ul><ul><li>Users </li></ul></ul>
  5. 5. Monitoring and Managing Applications <ul><li>From Task Manager, the Applications tab displays a list of all foreground software applications </li></ul><ul><li>To manage a particular application, select it from the list and choose a menu option: End Task, Switch To, New Tasks </li></ul><ul><li>Or, right-click an application and choose from shortcut menu: Switch To, Bring to Front, Minimize, Maximize, End Task, Go To Process </li></ul>
  6. 6. Monitoring and Managing Processes <ul><li>From Task Manager, the Processes tab displays a list of all processes in use by applications and services </li></ul><ul><li>Displays information about each running process </li></ul><ul><li>Right-click a process to end it </li></ul><ul><li>Can change process priority from default of Normal Priority </li></ul>
  7. 7. Monitoring and Managing Processes (continued)
  8. 8. Activity 11-1: Using Task Manager to Manage Applications and Processes <ul><li>Objective: To explore managing applications and processes using Task Manager </li></ul><ul><li>Open Task Manager using Ctrl+Alt+Delete </li></ul><ul><li>Observe running applications </li></ul><ul><li>Start a new application and explore options using Task Manager </li></ul>
  9. 9. Monitoring Real-Time Performance <ul><li>From Task Manager, the Performance tab displays CPU and memory performance charts, graphs, and statistics </li></ul><ul><li>Gives a snapshot of system performance at the moment </li></ul><ul><li>Often used in conjunction with a more detailed tool as a first pass look at performance </li></ul>
  10. 10. Monitoring Real-Time Performance (continued)
  11. 11. Monitoring Real-Time Performance (continued)
  12. 12. Activity 11-2: Using Task Manager to Monitor Performance <ul><li>Objective: To monitor server performance using the Task Manager </li></ul><ul><li>Open Task Manager and click the Performance tab </li></ul><ul><li>Review information </li></ul><ul><li>Start an application and again review performance </li></ul><ul><li>Explore starting and stopping applications and the effect on performance </li></ul>
  13. 13. Monitoring Network Performance <ul><li>From Task Manager, the Networking tab displays network utilization information </li></ul><ul><ul><li>Roughly the percentage of the network bandwidth in use </li></ul></ul><ul><li>Also displays network performance data for each installed network card </li></ul><ul><ul><li>Name of adapter, network utilization detected by the adapter, speed of network link, and operational state of adapter </li></ul></ul>
  14. 14. Monitoring Network Performance (continued)
  15. 15. Monitoring Users <ul><li>From Task Manager, the Users tab displays a listing of users currently logged on, including network clients </li></ul><ul><li>Can log off or disconnect a user </li></ul><ul><li>Can send messages to connected users </li></ul><ul><li>Can connect to another user’s session </li></ul>
  16. 16. Monitoring Users (continued)
  17. 17. Event Viewer <ul><li>Used to gather information and troubleshoot software, hardware, and system problems </li></ul><ul><li>Events are recorded in logs </li></ul><ul><li>Event Viewer allows you to view contents of logs </li></ul><ul><li>Log entries denote warnings and errors </li></ul><ul><ul><li>Often include an event ID that helps to identify problem </li></ul></ul><ul><li>Three main logs: </li></ul><ul><ul><li>Application log </li></ul></ul><ul><ul><li>Security log </li></ul></ul><ul><ul><li>System log </li></ul></ul>
  18. 18. Event Viewer (continued)
  19. 19. Event Viewer (continued) <ul><li>Domain controller has two additional logs: </li></ul><ul><ul><li>Directory service log </li></ul></ul><ul><ul><li>File replication service log </li></ul></ul><ul><li>Any user can view contents of application and system log </li></ul><ul><li>Administrators and those with special permission can view security log </li></ul><ul><li>Event types include: information, warning, error </li></ul>
  20. 20. Interpreting Events <ul><li>Click a log file within Event Viewer to get details </li></ul><ul><li>Details pane lists all events with information including: </li></ul><ul><ul><li>Type of event </li></ul></ul><ul><ul><li>Data and time of event </li></ul></ul><ul><ul><li>Source of event </li></ul></ul><ul><ul><li>Category and event ID </li></ul></ul><ul><ul><li>Computer on which event occurred </li></ul></ul>
  21. 21. Interpreting Events (continued)
  22. 22. Activity 11-3: Viewing Event Viewer System and Application Log Events <ul><li>Objective: Use Event Viewer to view system and application logs </li></ul><ul><li>Open Event Viewer and view the application log </li></ul><ul><li>View properties of events in the log </li></ul><ul><li>Open the system log </li></ul><ul><li>Review an error event </li></ul>
  23. 23. Activity 11-3 (continued)
  24. 24. Performance Console <ul><li>Supports gathering more detailed information than Task Manager </li></ul><ul><li>Consists of two different tools: </li></ul><ul><ul><li>System Monitor </li></ul></ul><ul><ul><ul><li>View data gathered from counter objects </li></ul></ul></ul><ul><ul><li>Performance Logs and Alerts </li></ul></ul><ul><ul><ul><li>Periodically logs samples to a data file to be imported into other applications </li></ul></ul></ul><ul><ul><ul><li>Generates alerts when certain configured thresholds are met </li></ul></ul></ul>
  25. 25. System Monitor <ul><li>Particularly useful for collecting data on real-time server performance </li></ul><ul><li>Tasks that can be performed using System Monitor: </li></ul><ul><ul><li>Understanding server performance </li></ul></ul><ul><ul><li>Problem diagnosis </li></ul></ul><ul><ul><li>Capacity planning </li></ul></ul><ul><ul><li>Testing </li></ul></ul><ul><li>You can specify a type of data to monitor, the source or computer from which to capture data, and performance objects to monitor </li></ul>
  26. 26. Using System Monitor <ul><li>Displays information when Performance tool is first opened </li></ul><ul><li>Data display related to memory, processor, and physical disk objects on local computer </li></ul><ul><li>Three possible views </li></ul><ul><ul><li>Graphs </li></ul></ul><ul><ul><li>Histogram </li></ul></ul><ul><ul><li>Report </li></ul></ul><ul><li>System Monitor toolbar used to control various functions </li></ul>
  27. 27. Using System Monitor (continued)
  28. 28. Activity 11-4: Exploring System Monitor Settings <ul><li>Objective: To explore System Monitor settings for Windows Server 2003 </li></ul><ul><li>Open the Performance console to see System Monitor running </li></ul><ul><li>Use the toolbar to change view types </li></ul><ul><li>Change the view to highlight a particular property </li></ul><ul><li>Explore freezing the display </li></ul>
  29. 29. Activity 11-4 (continued)
  30. 30. Activity 11-4 (continued)
  31. 31. Performance Objects and Counters <ul><li>Performance monitoring is a regular maintenance task </li></ul><ul><li>Performance counters: </li></ul><ul><ul><li>% processor time </li></ul></ul><ul><ul><li>% interrupt time </li></ul></ul><ul><ul><li>Pages/second </li></ul></ul><ul><ul><li>Page faults/second </li></ul></ul><ul><ul><li>% disk time </li></ul></ul><ul><ul><li>Avg. disk queue length </li></ul></ul>
  32. 32. Activity 11-5: Adding Counters to System Monitor <ul><li>Objective: To add object counters to the System Monitor tool </li></ul><ul><li>Add several counters </li></ul><ul><li>Explore the Explain feature </li></ul><ul><li>Explore different views </li></ul>
  33. 33. Activity 11-5 (continued)
  34. 34. Using System Monitor (continued) <ul><li>Collecting data is easy, interpreting data is harder </li></ul><ul><li>Often there are causal relationships that aren’t obvious </li></ul><ul><li>Several alternatives for saving and viewing historical data </li></ul><ul><ul><li>Html files </li></ul></ul><ul><ul><li>Log files </li></ul></ul><ul><ul><li>Databases </li></ul></ul>
  35. 35. Activity 11-6: Saving and Viewing System Monitor Data <ul><li>Objective: Explore options for saving System Monitor data </li></ul><ul><li>Open System Monitor and collect data </li></ul><ul><li>Freeze the display </li></ul><ul><li>Save the data as an html file </li></ul><ul><li>Explore options that are available in the browser </li></ul>
  36. 36. Activity 11-6 (continued)
  37. 37. Performance Logs and Alerts <ul><li>A second tool available within Performance console </li></ul><ul><li>Allows you to automatically collect data (locally or remotely) and view it using another program </li></ul><ul><li>Tasks: collect data in different formats, view data, configure parameters, configure and manage logging sessions, set up alerts </li></ul><ul><li>Three options available in tool: counter logs, trace logs, and alerts </li></ul>
  38. 38. Configuring Alerts <ul><li>Logging increases overhead on a server </li></ul><ul><li>Set up a regular schedule for collecting and reviewing data </li></ul><ul><li>Since logging should not run constantly, alerts can notify you of a potential problem </li></ul>
  39. 39. Configuring Alerts (continued)
  40. 40. Activity 11-7: Configuring Performance Logs and Alerts <ul><li>Objective: To explore configuring performance logging and alerts </li></ul><ul><li>Open Performance Logs and Alerts </li></ul><ul><li>View the System Overview log </li></ul><ul><li>Explore the Log Files and Schedules tab </li></ul><ul><li>Configure alerts and monitor performance </li></ul>
  41. 41. Configuring and Managing Services <ul><li>Don’t want to run unnecessary services, adds overhead to a system </li></ul><ul><li>Before disabling a service, check dependencies </li></ul><ul><li>Services MMC allows you to configure various settings under the properties of a service with following tabs </li></ul><ul><ul><li>General </li></ul></ul><ul><ul><li>Log On </li></ul></ul><ul><ul><li>Recovery </li></ul></ul><ul><ul><li>Dependencies </li></ul></ul>
  42. 42. Activity 11-8: Configuring Windows Server 2003 Services <ul><li>Open the Remote Desktop Help Session Manager and configure it to start automatically </li></ul><ul><li>Objective: To configure the startup properties and settings of Windows Server 2003 services </li></ul><ul><li>Open the Services MMC </li></ul><ul><li>Explore the General, Log On,Recovery and Dependencies tabs </li></ul><ul><li>Open the Messenger service and disable it </li></ul>
  43. 43. Activity 11-8 (continued)
  44. 44. Activity 11-8 (continued)
  45. 45. Summary <ul><li>Goal is to ensure servers meet performance expectations and to minimize server downtime </li></ul><ul><li>Task Manager utility provides snapshots of CPU, memory, and network performance and utilization – Used as an initial point of reference </li></ul><ul><li>Task Manager can also be used for management – to end, switch, start, etc. new applications and processes and to log off and disconnect users </li></ul>
  46. 46. Summary (continued) <ul><li>Event Viewer utility used to view logged information about errors, cautions, and events in processes and applications – helps to identify issues before they become larger problems </li></ul><ul><li>Performance console contains the System Monitor utility and the Performance Logs and Alerts utility </li></ul><ul><li>System Monitor allows you to track many different performance measures locally and remotely and provides different views of the measures </li></ul>
  47. 47. Summary <ul><li>Performance Logs and Alerts allows you to automatically log performance information based on start and stop times or on alert configurations </li></ul><ul><ul><li>Information can be saved in different formats including SQL database, comma-separated, tab-separated, etc. </li></ul></ul><ul><li>To optimize server performance, unnecessary services and applications should be disabled – some run by default when server is installed </li></ul><ul><ul><li>Check Dependencies before disabling a service </li></ul></ul>

×