Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


Leaky RAM is ruining my PC?

This has been bothering me for quite some time, and noone else has been able to give me a good answer:

How do you retrieve RAM lost to memory leaks?

I have one gig of RAM my computer, but I can only use 550MB of it... I just recently got into programming, and I am sure that memory leaks are the cause of this RAM loss. Is there a program I can use, is my RAM now useless, or did I miss something?


Dave's Answer:

Somehow, the image I get from what you're describing is that of a bag of grain with a small hole gnawed in the corner: the more time passes, the smaller the bag becomes.

RAM, however, doesn't work that way (which is just as well or we'd have stray bits all over the floor around our computers!)

A "memory leak" is something that happens in an individual program or, on very rare occasions, within the operating system itself, and it produces a program that over time has an increasingly large appetite for memory. Typically memory leaks are because of sloppy programming, where, for example, a routine might request and instantiate a block of memory for an array each time it's called, but never free it up.

In the Unix world we'd be talking about malloc and free, the two key routines for managing memory in an application. On a Windows system there are equivalent system calls within just about all robust programming language environments.

However, since I believe we're not talking about memory leaks (and one more characteristic of a memory leak: the amount of free memory shrinks over time which you aren't seeing), I will instead suggest that what you're seeing is either:

1. Bad Memory - when your computer boots up, at one point it should indicate to you how much usable memory there is. Does it agree with what you've installed? You can also look in your BIOS configuration to find out.

(I have an older PC where I added 512MB of RAM to bring it up to 756MB, just to find out that the motherboard/BIOS doesn't support more than 512MB. But it indicated that to me during bootup.)

2. A Greedy OS - if your hardware does have all the memory available, you might well have some sort of spyware, virus or even legitimate application that's automatically started when your OS launches that's eating up tons of your memory.

One way you can check this is to use Microsoft's Task Manager, which can monitor memory usage among its many capabilities.

Hope this helps you out!

Another possibility for your system slowing down, by the way, is that you have a virus or some spyware. Even if that seems remote, you must have both a solid antivirus solution and anti-spyware solution. I recommend AVG Antivirus for the former and Spy Sweeper for the latter.


More Useful Windows PC Help Articles:
✔   What's the easiest way to speed up my Windows PC laptop?
My Dell Windows 7 laptop is starting to drive me crazy. It's so darn slow! I've had it a few years and I...
✔   Can I force a Windows 7 OS system update?
Every so often Windows 7 pops up a window and tells me that there are updates. That's nice, but how can I force...
✔   Fix Google Drive (Gdrive) no longer supported (out of date)?
I'm a big Google fan and have been using Google Drive for quite a while as a cloud storage device. It's a breeze,...
✔   How do I open or unpack a RAR archive on my Windows PC?
I have some ".rar" files on my Windows 8 PC and am curious how to unpack them to see what's inside. From a...
✔   How can I shrink my Windows 8 Desktop file icons?
I've figured out most things in the new Windows 8 interface, except I can't see how to easily reduce or shrink the file...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  





Categorized: Windows PC Help   (Article 4318, Written by )
Tagged: memory, microsoft windows, ram
Previous: Contact groups in Google Gmail?
Next: Stuck in the Google Sandbox or Delisted?




Reader Comments To Date: 3

Doanld Calloway said, on December 17, 2005 2:55 PM:

There is a free software program out there called RAMFree which should do the job of recovering RAM on you XP system.

meg said, on December 20, 2005 9:37 AM:

I also recomment the free ram program... it is kept our older limited machine running much better. I sell on ebay and do photos etc as well as using a listing program.... they can be memory hungry, but the freeram program keeps everybody happy with minimal pauses! Free ram xp pro

Tyler Puckett said, on December 20, 2005 2:07 PM:

Don't forget about chip creep; it's possible your RAM just got unseated somehow.

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.