Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Finding which application has a memory leak

Finding which application has a memory leak

Scheduled Pinned Locked Moved The Lounge
helpperformancequestion
14 Posts 11 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S StevenWalsh

    Hi i'm coming up for a loss on my searches so i'd thought i'd see what you guys would reccomend :) We're having an issue with a few of our standard workstation builds where we're forced to reboot every few days due to what seems to me as a memory leak. Unfortuantely no one around here seems to know which application has the issue :) so any reccomendations on a tool that would help?

    F Offline
    F Offline
    f3rland
    wrote on last edited by
    #5

    I often use ProcessExplorer from SysInternals (now Micro$oft) Free and no install required. Show many usefull informations on processes : Image here[^] I use it about 40 times a day :-D [quote] The unique capabilities of Process Explorer make it useful for tracking down DLL-version problems or handle leaks, and provide insight into the way Windows and applications work. [/quote] Hope this will help ;)

    1 Reply Last reply
    0
    • S StevenWalsh

      Hi i'm coming up for a loss on my searches so i'd thought i'd see what you guys would reccomend :) We're having an issue with a few of our standard workstation builds where we're forced to reboot every few days due to what seems to me as a memory leak. Unfortuantely no one around here seems to know which application has the issue :) so any reccomendations on a tool that would help?

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #6

      StevenWalsh wrote:

      We're having an issue with a few of our standard workstation builds where we're forced to reboot every few days due to what seems to me as a memory leak. Unfortuantely no one around here seems to know which application has the issue so any reccomendations on a tool that would help?

      Task Manager? Before you reboot, just look which process is eating up the memory (look for the virtual memory column).

      Programming Blog utf8-cpp

      1 Reply Last reply
      0
      • S StevenWalsh

        Hi i'm coming up for a loss on my searches so i'd thought i'd see what you guys would reccomend :) We're having an issue with a few of our standard workstation builds where we're forced to reboot every few days due to what seems to me as a memory leak. Unfortuantely no one around here seems to know which application has the issue :) so any reccomendations on a tool that would help?

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #7

        "Memory Leak" is a term used too generically to be of any meaning. You can get a better understanding by watching Task Manager and turning on some select columns under the Processes tab, View menu. Turn on the following columns: Peak Memory Usage, USER objects, Handle Count, Thread Count, GDI Objects, and Virtual Memory Size. You'll have to learn what's base line for a normal load and watch for things that get out of the ordinary. For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky. No app should ever grab that many handles. A few thousand is plenty, but never tens of thousands.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        S L 2 Replies Last reply
        0
        • D Dave Kreskowiak

          "Memory Leak" is a term used too generically to be of any meaning. You can get a better understanding by watching Task Manager and turning on some select columns under the Processes tab, View menu. Turn on the following columns: Peak Memory Usage, USER objects, Handle Count, Thread Count, GDI Objects, and Virtual Memory Size. You'll have to learn what's base line for a normal load and watch for things that get out of the ordinary. For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky. No app should ever grab that many handles. A few thousand is plenty, but never tens of thousands.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          S Offline
          S Offline
          StevenWalsh
          wrote on last edited by
          #8

          Dave Kreskowiak wrote:

          For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky. No app should ever grab that many handles. A few thousand is plenty, but never tens of thousands.

          I ended doing this, and found the application. It looks like it was opening up 2 registry keys then closing 1 several times a second :)

          E D 2 Replies Last reply
          0
          • S StevenWalsh

            Dave Kreskowiak wrote:

            For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky. No app should ever grab that many handles. A few thousand is plenty, but never tens of thousands.

            I ended doing this, and found the application. It looks like it was opening up 2 registry keys then closing 1 several times a second :)

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #9

            StevenWalsh wrote:

            It looks like it was opening up 2 registry keys then closing 1 several times a second

            :doh: :doh: well, that should narrow it down REAL fast! Unless the app writes to the registry in every routine, you should locate it rather rapidly.... and if the app does write to the registry in every routine.... rewrite it. :omg:

            _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

            1 Reply Last reply
            0
            • S StevenWalsh

              Hi i'm coming up for a loss on my searches so i'd thought i'd see what you guys would reccomend :) We're having an issue with a few of our standard workstation builds where we're forced to reboot every few days due to what seems to me as a memory leak. Unfortuantely no one around here seems to know which application has the issue :) so any reccomendations on a tool that would help?

              J Offline
              J Offline
              Joe Woodbury
              wrote on last edited by
              #10

              Perfmon

              Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                "Memory Leak" is a term used too generically to be of any meaning. You can get a better understanding by watching Task Manager and turning on some select columns under the Processes tab, View menu. Turn on the following columns: Peak Memory Usage, USER objects, Handle Count, Thread Count, GDI Objects, and Virtual Memory Size. You'll have to learn what's base line for a normal load and watch for things that get out of the ordinary. For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky. No app should ever grab that many handles. A few thousand is plenty, but never tens of thousands.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #11

                Dave Kreskowiak wrote:

                For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky.

                Guess it need to get a handle on it ;P

                xacc.ide - now with IronScheme support
                IronScheme - 1.0 alpha 2 out now

                D 1 Reply Last reply
                0
                • S StevenWalsh

                  Dave Kreskowiak wrote:

                  For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky. No app should ever grab that many handles. A few thousand is plenty, but never tens of thousands.

                  I ended doing this, and found the application. It looks like it was opening up 2 registry keys then closing 1 several times a second :)

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #12

                  Back in the mid 90s, Yahoo had a stock ticker (i.e., a thin window that would sit at the top of the desktop) that did this. It did not slow the system down, but it was just unnerving knowing that an application was coded to do that. Even today, regmon.exe goes nuts on my (supposedly idle) machine. All sorts of things are constantly hammering the registry.

                  "Love people and use things, not love things and use people." - Unknown

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  M 1 Reply Last reply
                  0
                  • D David Crow

                    Back in the mid 90s, Yahoo had a stock ticker (i.e., a thin window that would sit at the top of the desktop) that did this. It did not slow the system down, but it was just unnerving knowing that an application was coded to do that. Even today, regmon.exe goes nuts on my (supposedly idle) machine. All sorts of things are constantly hammering the registry.

                    "Love people and use things, not love things and use people." - Unknown

                    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                    M Offline
                    M Offline
                    Mike Dimmick
                    wrote on last edited by
                    #13

                    DavidCrow wrote:

                    Even today, regmon.exe goes nuts on my (supposedly idle) machine. All sorts of things are constantly hammering the registry.

                    Which is ridiculous, because there are registry change notification APIs (RegNotifyChangeKeyValue) that have worked since Windows 98.

                    DoEvents: Generating unexpected recursion since 1991

                    1 Reply Last reply
                    0
                    • L leppie

                      Dave Kreskowiak wrote:

                      For instance, we had an application that just kept on using, but never releasing Handles. The handle count got over 100,000 for a single process before the system started to act funky.

                      Guess it need to get a handle on it ;P

                      xacc.ide - now with IronScheme support
                      IronScheme - 1.0 alpha 2 out now

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #14

                      leppie wrote:

                      Guess it need to get a handle on it

                      Yeah, it was Dell's Open Management Client thingy. We all know Dell can't get a handle on anything these days... :rolleyes:

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007, 2008

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups