Programs that fail to release memory when they're done using it are said to create a memory leak. Detect and stop memory leaks before the computer system crawls to a halt.
- [Instructor] Put away the drip pan. A memory leak doesn't make a mess, at least not a physical one. No, a computer memory leak is a runaway program. It occupies a chunk of memory or continues to gobble up more memory without letting go. Often the program continues to grab memory as the computer slowly grinds to a halt. One way to find a memory leak is to use the Resource Monitor utility. Press the Windows + r keyboard shortcut and type resmon for Resource Monitor. Okay, to look for a memory leak, ensure that the memory item is expanded. You can close the other items if they're open. The memory window is shown down here. It graphically charts memory usage over time. And what you're looking for is a program that keeps gobbling up memory as it runs. Now I've created such a program, and it's called leaker. Let me locate it in the list. And here it is. And as you can see by this commit column, the leaker program continually gobbles up more and more memory as it stays in memory and runs. This program dramatically represents a memory leak, though some real-world examples are less overt, and unfortunately there's nothing you can do about this leak here in the Resource Monitor window. It's just a reporting tool. The real way to get rid of a leaky memory program, now that we know the name, is to press Control + Shift + Escape to bring up the task manager window. And if you don't see the window expanded, choose the More Details item here. What you're looking for is the program that's causing the memory leak. For this example, the Windows command line processor is running the leaker program, which I see here. I will click to select it and click in task to shut it down, and it stops. Back in the Resource Monitor, you see the program is gone or you may see a ghost image of the program, either way it's gone. The program has stopped gobbling up memory, and the memory it's used is freed. I suppose the entry may stay as a ghost on some systems as a diagnostic tool. Still, the leaker program proved its worth. The Resource Monitor dramatically showed how it was consuming memory over time, and had it run unabated, eventually it could consume all memory in the computer, slowing the system or causing other issues. Follow a similar course of action to discover and eliminate memory leaks you find in your computer. Closing the program is all you can do. The memory leak is a coding error that must be fixed by the programmer. You can report the leak to the developer or check their website to see if it's a known issue or whether an update or patch is available. These things are best to discover early before they slow your computer's performance to a painful crawl.
Author
Updated
2/24/2021Released
9/5/2018Skill Level Beginner
Duration
Views
Related Courses
-
Operating System
-
Dealing with a bad sign-in2m 39s
-
Doing a Windows checkup2m 45s
-
Recovering a deleted file2m 54s
-
Locating a lost file2m 34s
-
Rolling back an update2m 17s
-
Fixing a full hard drive4m 28s
-
Controlling the taskbar2m 55s
-
Speeding up a slow computer2m 48s
-
Uninstalling software1m 40s
-
Mapping a network drive2m 48s
-
Managing desktop icons3m 12s
-
Configuring system updates2m 13s
-
Formatting media2m 22s
-
Setting laptop power options3m 43s
-
Renaming a group of files1m 41s
-
-
Networking
-
Finding the PC's IP address2m 46s
-
Reviewing network layout2m 23s
-
Managing Wi-Fi networks2m 15s
-
Restarting the network2m 18s
-
Checking network privacy1m 56s
-
Sharing a folder2m 10s
-
Updating the Wi-Fi password1m 18s
-
Checking your internet speed1m 27s
-
Mapping a network drive2m 42s
-
-
Security
-
Being password smart2m 37s
-
Updating your password2m 14s
-
Spotting a secure website2m 30s
-
Clearing the browser history2m 40s
-
Running Windows Defender1m 54s
-
-
Hardware
-
Microsoft Office
-
Selecting another printer2m 19s
-
Word: Centering a page2m 25s
-
Word: Adding a page border2m 14s
-
Word: Setting tab stops3m 4s
-
Windows 10
-
Creating a new task view2m 2s
-
Changing AutoPlay behavior1m 23s
-
Pruning recent file lists1m 44s
-
Reviewing keyboard shortcuts2m 38s
-
Configuring Windows 10 sync1m 56s
-
Arranging windows1m 28s
-
Using night light1m 53s
-
Understanding Quick Access1m 40s
-
-
Troubleshooting
-
Checking the hardware1m 54s
-
Using the Task Manager2m 11s
-
Activating File History2m 16s
-
Reviewing events2m 14s
-
Setting a restore point2m 6s
-
Using system restore1m 54s
-
Laptop Assistance
-
Preparing for a road trip2m 49s
-
Going on the road3m 24s
-
Entering tablet mode2m 21s
-
Connecting to a projector2m 40s
-
Protecting your laptop3m 16s
-
Connecting to a VPN2m 7s
-
-
Shortcuts and Time-Savers
-
Pinning items to the taskbar2m 34s
-
Adding the address bar2m 24s
-
Changing file association2m 43s
-
Recognizing USB colors3m 6s
-
-
Images and Graphics
-
Fixing a photo2m 26s
-
Changing image file formats1m 46s
-
-
PC Performance
-
Understanding memory leaks2m 58s
-
Stopping a stuck program2m 47s
-
Adding a second hard drive3m 14s
-
Adding more memory2m 55s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Understanding memory leaks