PC Review


Reply
Thread Tools Rate Thread

consuming RAM ...

 
 
Fabio Gianzanti
Guest
Posts: n/a
 
      6th Feb 2004
Hello,

I have an image booting from RAMDisk, without EWF. I`m
having problems with the RAM, because something is
collecting all my memory in about 4 hours. In my machine
I have 1GB of RAM, and all my usage is about 850MB, in
the sum of application, SO, and RAMDISK drive. But, after
few hours I get 0(zero) RAM free.
I dont have PageFile enabled, I disabled the background
disk defrag and limited the size of the events log. Is
there anything else that can consume the memory ??
I checked the temp directory (viewing the hidden files
too) but I have only one file, with few Kbytes...
Does anybody has any idea to help me ??

Thanks a lot,

Fabio Gianzanti
 
Reply With Quote
 
 
 
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      6th Feb 2004
This problem should not be related to RAMDisk driver.
It will consume fixed amount of memory determined by SDI and it will not
consume more memory during runtime.
Decrementing ramdisk would not change ram usage.

Since we are talking about 150 MB of memory leaks. It is probably program
memory leak. (If not then it is serious XP bug that should be found).

Try using kernel debugger to detect all memory usages by all drivers,
processes, etc. That way you will find what is causing this problem.

If you can execute it use Task Manager for first test.

Regards,
Slobodan


"Fabio Gianzanti" <grfabio@nospam_terra.com.br> wrote in message
news:c21c01c3ecf5$44aa73f0$(E-Mail Removed)...
> Hello,
>
> I have an image booting from RAMDisk, without EWF. I`m
> having problems with the RAM, because something is
> collecting all my memory in about 4 hours. In my machine
> I have 1GB of RAM, and all my usage is about 850MB, in
> the sum of application, SO, and RAMDISK drive. But, after
> few hours I get 0(zero) RAM free.
> I dont have PageFile enabled, I disabled the background
> disk defrag and limited the size of the events log. Is
> there anything else that can consume the memory ??
> I checked the temp directory (viewing the hidden files
> too) but I have only one file, with few Kbytes...
> Does anybody has any idea to help me ??
>
> Thanks a lot,
>
> Fabio Gianzanti



 
Reply With Quote
 
MickeyBob
Guest
Posts: n/a
 
      7th Feb 2004
I am experiencing a memory leak situation too. To compare
notes, my system is running XPe, has 128Mb, and the page
file is disabled. My memory leak occurs when I use a
method provided in MS's Data Access application block to
run a stored procedure that takes considerable time, or
when I spawn another process and monitor it's status. In
the latter case, all I do in my code is create and start
the new process and have a do() loop that checks if the
new process is still running. I have tried running
several different subordinate apps including the DOS
command window (i.e., CMD.EXE). I run task manager to
show the memory usage and everytime it updates, I've lost
4-12k or RAM. So in my situation, I run out of memory
within a minute or so. I run the exact same code on my
laptop running full-blown XP and the memory leak does not
occur. Any similarities?

I have seen one or two references in some other news
group about a memory leak in XPe when the application has
a SQLConnection object. Apparently, they only experienced
the problem after they created and used the object. If
they just created the object but didn't use it, the
problem didn't occur.

To test that theory, I wrote a very small application
that didn't contain a SQLConnection object and spawned a
new process in a manner very similarly to my large
application. It didn't have a memory leak.

Does any of this ring a bell?

>-----Original Message-----
>Hello,
>
>I have an image booting from RAMDisk, without EWF. I`m
>having problems with the RAM, because something is
>collecting all my memory in about 4 hours. In my machine
>I have 1GB of RAM, and all my usage is about 850MB, in
>the sum of application, SO, and RAMDISK drive. But,

after
>few hours I get 0(zero) RAM free.
>I dont have PageFile enabled, I disabled the background
>disk defrag and limited the size of the events log. Is
>there anything else that can consume the memory ??
>I checked the temp directory (viewing the hidden files
>too) but I have only one file, with few Kbytes...
>Does anybody has any idea to help me ??
>
>Thanks a lot,
>
>Fabio Gianzanti
>.
>

 
Reply With Quote
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      7th Feb 2004
I can provide you with few information that you should consider when
comparing XPe and XP.
If you use XPe without page file then you must do the same with Windows XP,
so you can have same results.

There are API functions that will behave differently when pagefile is
disabled.
For instance if you only reserve some memory let us say 80 MB if you have
page file mem will be reserved in page file not from RAM.
But if page file is disabled then all memory will be allocated and committed
from physical RAM.

Long time ago this derived me crazy I'm using many DMO codec's for video
compression and decompression, and I can't influence their mem allocation.
When PF is enabled my app for compression consumes less than 20 MB of ram
and around 200 MB from PF is reserved, but if PF is not there then all this
memory is allocated from RAM (very frustrating but that is how OS must
work). I solved my problems by using only codecs than are needed at same
time, but...

Conclusion:
1. Make same environment in XP like in XPe (disable page file)
2. If you write applications, write them for XPe, that way they will work on
XP.

This maybe can help you.

Regards,
Slobodan


"MickeyBob" <(E-Mail Removed)> wrote in message
news:bc2d01c3ed7f$d0fd3330$(E-Mail Removed)...
> I am experiencing a memory leak situation too. To compare
> notes, my system is running XPe, has 128Mb, and the page
> file is disabled. My memory leak occurs when I use a
> method provided in MS's Data Access application block to
> run a stored procedure that takes considerable time, or
> when I spawn another process and monitor it's status. In
> the latter case, all I do in my code is create and start
> the new process and have a do() loop that checks if the
> new process is still running. I have tried running
> several different subordinate apps including the DOS
> command window (i.e., CMD.EXE). I run task manager to
> show the memory usage and everytime it updates, I've lost
> 4-12k or RAM. So in my situation, I run out of memory
> within a minute or so. I run the exact same code on my
> laptop running full-blown XP and the memory leak does not
> occur. Any similarities?
>
> I have seen one or two references in some other news
> group about a memory leak in XPe when the application has
> a SQLConnection object. Apparently, they only experienced
> the problem after they created and used the object. If
> they just created the object but didn't use it, the
> problem didn't occur.
>
> To test that theory, I wrote a very small application
> that didn't contain a SQLConnection object and spawned a
> new process in a manner very similarly to my large
> application. It didn't have a memory leak.
>
> Does any of this ring a bell?
>
> >-----Original Message-----
> >Hello,
> >
> >I have an image booting from RAMDisk, without EWF. I`m
> >having problems with the RAM, because something is
> >collecting all my memory in about 4 hours. In my machine
> >I have 1GB of RAM, and all my usage is about 850MB, in
> >the sum of application, SO, and RAMDISK drive. But,

> after
> >few hours I get 0(zero) RAM free.
> >I dont have PageFile enabled, I disabled the background
> >disk defrag and limited the size of the events log. Is
> >there anything else that can consume the memory ??
> >I checked the temp directory (viewing the hidden files
> >too) but I have only one file, with few Kbytes...
> >Does anybody has any idea to help me ??
> >
> >Thanks a lot,
> >
> >Fabio Gianzanti
> >.
> >



 
Reply With Quote
 
Fabio Gianzanti
Guest
Posts: n/a
 
      9th Feb 2004
Thanks a lot !!! It was a memory leak, that I discovered.
Thanks.

 
Reply With Quote
 
 
 
Reply

« devcon | dvcon »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SVChost.exe is consuming 99% CPU =?Utf-8?B?Um9uYWsgUGF0ZWw=?= Windows XP Help 2 20th Jun 2007 01:27 PM
Consuming memory Tom Microsoft Outlook Discussion 2 9th May 2007 04:56 PM
Consuming VB.NET DLL in VC++.NET =?Utf-8?B?U2ltb24gU21pdGg=?= Microsoft VC .NET 6 24th Nov 2006 03:30 PM
Winlogon.exe consuming CPU Franky Windows XP General 3 7th Aug 2006 06:13 PM
ie6 consuming handles Dave Anderson Windows XP Internet Explorer 1 26th Nov 2005 05:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.