Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 442977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:07:31+00:00 2026-05-12T21:07:31+00:00

With RAM typically in the Gigabytes on all PC’s now, should I be spending

  • 0

With RAM typically in the Gigabytes on all PC’s now, should I be spending time hunting down all the small (non-growing) memory leaks that may be in my program? I’m talking about those holes that may be less than 64 bytes, or even a bunch that are just 4 bytes.

Some of these are very difficult to identify because they are not in my own code, but may be in third party code or in the development tool’s code, and I may not even have direct access to the source. In those cases, it would involve lengthy communication with the vendors of these products.

I have seen the number one memory leak question here at SO: Are memory leaks ever ok? and the number one answer to that, as of now voted up 85 times, is: No.

But here I’m talking about small leaks that may take an inordinate amount of debugging, research and communication to track down.

And I’m only talking about a simple desktop app. I understand that apps running on servers must be as tight as possible.

So the question I am really asking is, if I know I have a program that leaks, say 40 bytes every time it is run, does that matter?

A Single Drip
(source: beholdgenealogy.com)


Also see my followup question: What Operating Systems Will Free The Memory Leaks?


Postscript: I just purchased EurekaLog for my program development.

I found an excellent article by Alexander, the author of EurekaLog (who should know these things), about catching memory leaks. In that article, Alexander states the answer to my question very well and succinctly:

While any error in your application is always bad, there are types of errors, which can be not visible in certain environments. For example, memory or resources leaks errors are relatively harmless on client machines and can be deadly on servers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:07:31+00:00Added an answer on May 12, 2026 at 9:07 pm

    This is completely a personal decision.

    However, if:

    So the question I am really asking is, if I know I have a program that leaks, say 40 bytes every time it is run, does that matter?

    In this case, I’d say no. The memory will be reclaimed when the program terminates, so if it’s only leaking 40 bytes one time during the operation of an executable, that’s practically meaningless.

    If, however, it’s leaking 40 bytes repeatedly, each time you do some operation, that might be more meaningful. The longer running the application, the more significant that becomes.

    I would say, though, that fixing memory leaks often is worthwhile, even if the leak is a “meaningless” leak. Memory leaks are typically indicators of some underlying problem, so understanding and correcting the leak will often make your program more reliable over time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example I have created cluster with 1GB RAM memory per node. After some
I am specifically talking about physical RAM, I do not want virtual memory stats
I'm developing a RAM simulation in WPF. When a create the memory, I set
My program eventually consumes all ram and crashes... looking through the code, I can't
How system memory (RAM) is mapped for GPU access? I am clear about how
Say I have file - a.csv ram,33,professional,doc shaym,23,salaried,eng Now I need this output (pls
Suppose a discrete video card has N megabytes of gpu ram. Typically how much
I have now 1gb ram at work(i hope that will change soon) and jboss
#! /bin/bash # # clear_ram.sh - Clear as much user-space ram as possible #
Looking for a RAM disk API (or equivalent set of software to implement) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.