How to Detect a Memory Leak By Using System Performance Monitor in Windows 2000.

Slides:



Advertisements
Similar presentations
SEMINAR ON FILE SLACK AND DISK SLACK
Advertisements

MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
2.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 2: Installing Windows Server.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
Lesson 12 – NETWORK SERVERS Distinguish between servers and workstations. Choose servers for Windows NT and Netware. Maintain and troubleshoot servers.
11 MONITORING MICROSOFT WINDOWS SERVER 2003 Chapter 3.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 14: Troubleshooting Windows Server 2003 Networks.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Module 14 Monitoring and Maintaining Windows Server® 2008 Servers.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
Windows Server 2008 Chapter 11 Last Update
 Demand Technology Software, Inc. Memory Leaks Demand Technology 1020 Eighth Avenue South, Suite 6, Naples, FL phone: (941) fax: (941)
Virtual Memory Tuning   You can improve a server’s performance by optimizing the way the paging file is used   You may want to size the paging file.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Windows 2000 Memory Management Computing Department, Lancaster University, UK.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Booting in Windows XP Presented and Designed By: Luke Ladd.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.
MCTS Guide to Microsoft Windows 7
Microsoft ® Official Course Module 10 Optimizing and Maintaining Windows ® 8 Client Computers.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Storage Manager Overview L3 Review of SM Software, 28 Oct Storage Manager Functions Event data Filter Farm StorageManager DQM data Event data DQM.
®® Microsoft Windows 7 for Power Users Tutorial 9 Evaluating System Performance.
Chapter 33 Troubleshooting Windows Errors. STOP Errors  When Microsoft Windows XP encounters a serious problem  And the operating system can't continue.
Hardware Management in Windows XP. Device Manager  Overview of device manager list of devices and status (example)example driver details and upgrade.
Computer Studies (AL) Memory Management Virtual Memory I.
Maintaining and Updating Windows Server Monitoring Windows Server It is important to monitor your Server system to make sure it is running smoothly.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
How to Run a Scenario In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Supporting Windows 9x Chapter 12 Key Terms By Bill Ward.
Chapter 10 System Monitoring Issues Performance Benchmarks NT Server Services Users and Server Access Information Task Manager for Applications Ram and.
Computer Systems Week 14: Memory Management Amanda Oddie.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
Monitoring and Managing Server Performance. Server Monitoring To become familiar with the server’s performance – typical behavior Prevent problems before.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
Windows Server 2003 系統效能監視 林寶森
Module 14 Monitoring and Maintaining Windows Server® 2008 Servers.
Unit 1: Computing Fundamentals. Computer Tour-There are 7 major components inside a computer  Write down each major component as it is discussed.  Watch.
FINDING THE “MAKE IT FASTER!” BUTTON AND HITTING IT! Ewan MacKellar Senior Premier Field Engineer Microsoft SESSION CODE: SVR306 (c) 2011 Microsoft. All.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
Page 1 Monitoring, Optimization, and Troubleshooting Lecture 10 Hassan Shuja 11/30/2004.
Monitoring Servers Lesson 11. Skills Matrix Technology SkillObjective DomainObjective # Using the Reliability and Performance Console Monitor servers.
ITMT 1371 – Window 7 Configuration 1 ITMT Windows 7 Configuration Chapter 8 – Managing and Monitoring Windows 7 Performance.
The Troubleshooting Process. Hardware Maintenance Make sure that the hardware is operating properly.  Check the condition of parts.  Repair or replace.
BASIC PROGRAMMING C SCP1103 (02)
Installing Windows Server 2008
Hands-On Microsoft Windows Server 2008
BASIC PROGRAMMING C SCP1103 (02)
MCTS Guide to Microsoft Windows 7
My Faculty Name Is Mr.Dattarey Joshi
MONITORING MICROSOFT WINDOWS SERVER 2003
Fix Microsoft Office Error Code Call
Unit OS5: Memory Management
Presentation transcript:

How to Detect a Memory Leak By Using System Performance Monitor in Windows 2000

Overview  What is a memory leak?  Establish a baseline to detect memory leaks  Different types of memory/resources  Which counters to select to detect memory leaks in System Performance Monitor  Examples of memory leaks  What to do when you find a memory leak

What Is a Memory Leak?  A memory leak occurs when a program uses resources on a computer but never releases the resources. The resources can include handles, physical RAM, the paging file, system resources, etc.  Symptoms of a memory leak include system hangs, slow system performance, and program memory error messages.

Establish a Baseline  Before trying to detect a memory leak, gather a log on a computer that has the same role, hardware, and basic programs to determine a baseline for each process. Each process has a set of code that allocates resources uniquely. When a process starts, resource allocation can increase rapidly. However, resource allocation should level off after a period of time. To establish a memory leak, resource allocation for that process should continue to increase on a very consistent basis over a period of time.  See article Q in the Microsoft Knowledge Base to set up a performance log.

Different Types of Resources  Private bytes – resources the process has allocated that cannot be shared with other processes.  Pool page bytes – an area of system memory (physical memory used by Windows 2000) for objects that can be written to disk when they are not being used.

Different Types of Resources  Pool non-page bytes – an area of system memory for objects that cannot be written to disk but which must remain in physical memory. (The limit is 256 MB).  Pool page bytes/pool non-page bytes are areas of system memory set aside by Windows 2000 for system components.  Handles are the sum of the number of file handles that are owned by each thread in the process.

Counters to Detect Memory Leak Under the memory object, click the Available Bytes counter.

Counters to Detect Memory Leak Under the process object, click the Handle Count, Pool Nonpaged Bytes, Pool Paged Bytes, and Private Bytes counters for the process that may be having the problem. Under the process object, click the Handle Count, Pool Nonpaged Bytes, Pool Paged Bytes, and Private Bytes counters for the process that may be having the problem.

Displays the selected counters: Available Bytes, Handle Count, Pool Nonpaged Bytes, Pool Paged Bytes, and Private Bytes. Chart View of Performance Monitor

Example of Private Byte Memory Leak In this example, the Private Bytes count for the process is consistently increasing. It never decreases, indicating that the BugBug process has a memory leak.

Example of Handle Count Memory Leak In this example, the Handle count for the process is consistently increasing. It never decreases, indicating that the BugBug process has a memory leak.

What to Do When You Find a Memory Leak  Stop any service related to that process.  Stop any process that may interact with the process with a memory leak.  If the process is part of a third-party program, contact the manufacturer for any updates to the program. If it is a Microsoft process or program, check the Microsoft Knowledge Base for any known issues. If there are no known issues with the Microsoft process or program, contact Microsoft Product Support Services.