Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: memory leak

01 Nov 2009   #1
chinga69

xp/vista/win7/win8/10 tech preview
 
 
memory leak

hi all
i am having all memory used up at intermittent times
sometimes 2 hours sometimes it takes 2 days and when it happens media portal has frozen and its used about 900 meg of my 3325 of ram

any body like to help me figure out were the memory leak is

cheers brad


My System SpecsSystem Spec
01 Nov 2009   #2
H2SO4

Win7x64
 
 

As discussed previously, it sounds like a resource leak, but the real questions are "what's leaking?" and "can it be worked around without (re)coding the component in question?". This is all assuming you're already on the latest version of all the components involved, which tends to have a way of resolving (embarrassing) known resource leaks

The best way to troubleshoot is to start a Perfmon log straight after a reboot, and to keep it running until the "freeze" symptom manifests itself. Given it can take days, the trick is to keep the log file from growing to a monstrous size. That's done by being selective about what's being monitored, and how often perfmon records a "sample".

As a suggestion, create a Perfmon counter log to record all instances of all counters under the following objects:

- MEMORY
- PROCESS
- PROCESSOR
- SYSTEM
- THREAD

Set the sample interval to say 2 minutes, and kick off the log soon after the next scheduled reboot. Stop the perfmon log only once you're confident that the machine is clearly being all weird in the particular way which you wish to analyse.

If you need more info on how to create the perfmon log, just yell. Ditto if you'd like assistance in analysing it. There's nothing particularly personal in there other than the hostname of your server and the names of the processes running on it.
My System SpecsSystem Spec
01 Nov 2009   #3
chinga69

xp/vista/win7/win8/10 tech preview
 
 

Quote   Quote: Originally Posted by H2SO4 View Post
As discussed previously, it sounds like a resource leak, but the real questions are "what's leaking?" and "can it be worked around without (re)coding the component in question?". This is all assuming you're already on the latest version of all the components involved, which tends to have a way of resolving (embarrassing) known resource leaks

The best way to troubleshoot is to start a Perfmon log straight after a reboot, and to keep it running until the "freeze" symptom manifests itself. Given it can take days, the trick is to keep the log file from growing to a monstrous size. That's done by being selective about what's being monitored, and how often perfmon records a "sample".

As a suggestion, create a Perfmon counter log to record all instances of all counters under the following objects:


- MEMORY
- PROCESS
- PROCESSOR
- SYSTEM
- THREAD

Set the sample interval to say 2 minutes, and kick off the log soon after the next scheduled reboot. Stop the perfmon log only once you're confident that the machine is clearly being all weird in the particular way which you wish to analyse.

If you need more info on how to create the perfmon log, just yell. Ditto if you'd like assistance in analysing it. There's nothing particularly personal in there other than the hostname of your server and the names of the processes running on it.
ok lol
i will need help to start the perfmon counter log

the ram is climbing now so it shouldn't be long before it happens again

cheers brad
My System SpecsSystem Spec
01 Nov 2009   #4
H2SO4

Win7x64
 
 

(Self-plagiarisation)

1) Create a counters.txt file somewhere on your machine with the following contents:

Code:
 
\process(*)\*
\processor(*)\*
\memory\*
\Thread(*)\*
\system\*
2) On an elevated (run as admin) CMD prompt (change <path> to location of counters.txt): logman create counter LeakLog -cf c:\<path>\counters.txt -si 2:00

3) On the same CMD prompt: logman start LeakLog

4) Wait for the symptom to occur...

5) On an elevated CMD prompt again: logman stop LeakLog


The resultant Binary LoG (BLG) file should be in the \Perflogs\Admin folder.

Note that it's also possible to battle the Perfmon UI to perform the same operation, but I'd rather slash my wrists. When asked "what do you really detest about post-XP Windows?", I say "the counter selection mechanism in the new Perfmon UI". Still waiting for somebody to ask me though.)
My System SpecsSystem Spec
01 Nov 2009   #5
chinga69

xp/vista/win7/win8/10 tech preview
 
 

Quote   Quote: Originally Posted by H2SO4 View Post
(Self-plagiarisation)

1) Create a counters.txt file somewhere on your machine with the following contents:

Code:
 
\process(*)\*
\processor(*)\*
\memory\*
\Thread(*)\*
\system\*
2) On an elevated (run as admin) CMD prompt (change <path> to location of counters.txt): logman create counter LeakLog -cf c:\<path>\counters.txt -si 2:00

3) On the same CMD prompt: logman start LeakLog

4) Wait for the symptom to occur...

5) On an elevated CMD prompt again: logman stop LeakLog


The resultant Binary LoG (BLG) file should be in the \Perflogs\Admin folder.

Note that it's also possible to battle the Perfmon UI to perform the same operation, but I'd rather slash my wrists. When asked "what do you really detest about post-XP Windows?", I say "the counter selection mechanism in the new Perfmon UI". Still waiting for somebody to ask me though.)
ok done all completed successfully
My System SpecsSystem Spec
01 Nov 2009   #6
chinga69

xp/vista/win7/win8/10 tech preview
 
 

i got perfmon open and got as far as user defined data collector set but it wants an xml file

under user defined it now has a leaklog running is that what you started from the dos prompt

its up to 2300 meg of ram

cheers brad
My System SpecsSystem Spec
01 Nov 2009   #7
H2SO4

Win7x64
 
 

Quote   Quote: Originally Posted by chinga69 View Post
i got perfmon open and got as far as user defined data collector set but it wants an xml file

under user defined it now has a leaklog running is that what you started from the dos prompt

its up to 2300 meg of ram

cheers brad
If you already punched in all the command-line stuff then you don't need to do anything in the Perfmon UI, at least until it comes time to analyse the data.

The "LOGMAN" command by itself (without switches) should now show the LeakLog status as running.

Don't worry too much about the amount of RAM. Just wait until that "freeze" symptom reproduces before stopping the log.
My System SpecsSystem Spec
01 Nov 2009   #8
chinga69

xp/vista/win7/win8/10 tech preview
 
 

ok thanks
will let you know when it happens
My System SpecsSystem Spec
02 Nov 2009   #9
chinga69

xp/vista/win7/win8/10 tech preview
 
 

ok it has frozen meadia portal over night here is the log i cant see anything in it

cheers brad



i renamed the file to get it to up load you will have to rename it


Attached Files
File Type: zip LeakLog_000004.zip (128.0 KB, 8 views)
My System SpecsSystem Spec
02 Nov 2009   #10
chinga69

xp/vista/win7/win8/10 tech preview
 
 

here is a pic of task manager

cheers brad


Attached Thumbnails
-taskman.jpg  
My System SpecsSystem Spec
Reply

 memory leak




Thread Tools





Similar help and support threads
Thread Forum
chkdsk high memory usage / memory leak
Has anyone else noticed that chkdsk uses all available physical memory (if you let it run long enough)? I find that if I run chkdsk and watch the memory usage in task manager it jumps by about 50MB every 2 seconds or so until it either finishes or hits around 3.2GB at which point my physical...
Performance & Maintenance
General Win7 memory leak and Unknown memory usage?
So I've had this problem for a few months with my thinkpad x220, win7 home premium 64 bit. I used ccleaner, run memtest86 multiple times, chkdsk multiple times, sfc scan multiple times, none that helped. Sfc always detects errors but always cannot fix some of them. I have mse, avast, and...
Performance & Maintenance
Troubleshooting Excessive Memory Use (Memory Leak?) after playing vid.
HI; I am having a problem with my memory getting tied up / used up and not being able to access it again until I reboot. Machine: Dell xps studio 8100 OS: Win 7, Processor: i7 2.8 RAM: 16GB (max it will take) Video: ATI Radeon 5700 (running 3 monitors) Versions: As far as I know I am...
Performance & Maintenance
IE8 Memory Leak
Reading around I thought IE eliminated it's memory leaks but I definitely have it when I use IE8. I typically have three windows of IE8 open and within one will have multiple tabs, maybe five or six at the most. Over time memory usage definitely grows and is not reclaimed as tabs or even...
Browsers & Mail
[Help]Memory Leak. All memory drained and used
Today, my computer decided for some reason to start hogging all the memory. The memory slowly goes up after around 3:30 minutes of being open. CPU usage is at regular. I have tried many things to fiqure out the problem. Not even safe mode works. Also it's very weird because i have 6gb of...
BSOD Help and Support
Memory Leak
I think i have a memory leak, everytime i leave my computer idling for a few hours all my memory is taken by something and the system becomes very slow until i free it up using a memory cleaning software. here's what task manager shows me: http://imgur.com/A1Da6.png and here is the list of...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App