PDA

View Full Version : Memory leak



Silent Ambush
07-11-2000, 12:07 AM
ok i know i have a memory leak but i dont know what program has the memory leak and i dont know how to fix the memory leak. can anyone please help me find what program has the memory leak and tell me how to fix it

POBrien
07-11-2000, 01:36 AM
How do you know you have a memory leak?

Silent Ambush
07-11-2000, 04:55 AM
i know i have a memory leak because all of my resources are down to about 60% all of the time except for right after i start up windows and i cant pin point which program it is that has a memory leak

POBrien
07-11-2000, 05:16 AM
How many programs are open when you check the resources?
For instance, When I boot into windows my resources reflect 90%. The I get online (IE). then open Outlook to check my mail. notepad is open checking some info. I'll launch AOL as well. Then I check my resources and it's around 50%-60%.
(I've opened at list 14 programs simultaneously with no problems) If this scenario matches yours there isn't a memory leak. Windows has used up your physical memory and is now tapping into your swap file. All is ok!

You can get much better system performance by setting a min and max swap file size in the performance tab. Usually 2 1/2 times your total Ram. This will stop windows from constantly resizing your swap file (delay in execution of commands). You should also add these two lines below the [vcache] section within the system.ini file. This action provides a static File cache of 2 MB.


[vcache]
MinFilecache=2048
MaxFileCache=2048


Reboot

Silent Ambush
07-11-2000, 10:14 PM
yeah i can open programs like u had explained but when i close all of the programs i have opened one or two programs does not give back the memory it used, so my resources stay down about 70%- 60% and i thought that the programs are supposed to give back the resources it had used. just to let u know i always set my swap file to 2 1/2 times my ram. i will add the vcache line and see if that help's. Thank you for your help

Nick
07-11-2000, 11:10 PM
It is a know prob wit hWindoze. After I have been playing Quake, WinME reports 0% memory free!!

Try RamBooster:-
http://www.sci.fi/~borg/rambooster/

It is good if used correctly.

Nick

Silent Ambush
07-12-2000, 01:21 AM
ok would any one know how i can increase my gdi and user resources?

POBrien
07-12-2000, 01:25 AM
You're right the programs should release the resources used. They do. Most of them except for the poorly coded programs. The problem is Windows does not recover all of the available resources. As Nick mentioned there are programs that will do so.

Paul D
07-12-2000, 04:00 AM
"ok would any one know how i can increase my gdi and user resources?"

If you mean total, you can't. They are a fixed memory segment.
If you mean available, careful choice of applications, and much trial & error.
Anyway, 60% is pretty good. I'm still stable at about 35%

Silent Ambush
07-12-2000, 05:41 AM
ok so then if u are still stable at 35% why when i am down to about 60% my sound gets messed up and starts to pop and make wierd noises that it soundn't make but my sound card works fine at 70% and up. do i need to get a sound card with its own DSP on it? and to pobrien how can i fix that so they release the resources that they used?

Paul D
07-12-2000, 06:32 AM
As I understand it, resources are a fixed segment of memory that look after the Graphical User Interface (GUI), and shouldn't have anything to do with sound problems. How much RAM do you have?
You could also try the following (taken from PC911 site):-
Win98 Users Can Improve Memory Speed
Microsoft, in their infinite wisdom, have structured Windows 98 memory usage so that your swap file (virtual memory) is accessed before you run out of RAM (physical memory). This is a curious set up because as you know, virtual memory operates more slowly than physical memory. Microsoft claims (in MSKB article Q223294) that this method is more efficient. This may or may not be so. But you can compare as delivered performance against this tweak by launching some memory intensive programs (advanced graphics editors are perfect for this) and edit large files both before and after you make these changes. If you use more than 64MB RAM then this is worth a try. You can always change it back easily enough. Just edit your System.ini under the <386Enh> section, add the following line:
ConservativeSwapfileUsage=1
Reboot and run some of those memory intensive programs again, preferably under identical circumstances, to see if things have improved.

Also check the following 2 Knowledge base articles:-
http://support.microsoft.com/support/kb/articles/Q146/4/18.asp?LN=EN-US&SD=gn&FR=0
http://support.microsoft.com/support/kb/articles/Q185/8/32.ASP?LN=EN-US&SD=gn&FR=0






<Font face="Brush Script MT" size=+3 color=#3366FF>Paul D</font>

[I]

Silent Ambush
07-12-2000, 12:24 PM
i have 128 mb ram

Silent Ambush
07-12-2000, 12:32 PM
ok i did what u said go and edit some large files and launched some programs that would take alot of ram and they gave back all but 2 megs or ram back

Silent Ambush
07-12-2000, 12:43 PM
ok i have also chacked the 2 articles and they realy didn't apply exept for one it had the right problem "when programs are started you have a sertain amount of resources and when they are shut donw they have a diff amount or less resources" but i dont open and close programs quik enough for them not to finish loading

POBrien
07-13-2000, 08:03 AM
You can't fix it outright. You can only "re-boost" your ram with 3rd party utilities. However you never know, You may have ram starting to fail or a program's .dll or .vxd file is becoming or is corrupted Or the sound card ?? Or PCI slot that the sound card is in ?? etc.. etc.. On average you should recover more than 60% after closing all the programs. Obviously your sound should work fine regardless of the resource level.

Yevgeniy
07-13-2000, 12:36 PM
http://www.winsite.com/cgi-bin/dload/14/win95/sysutil/anticrash30.exe

POBrien
07-15-2000, 05:52 AM
Found this program on the front page of softseek.com

http://softseek.com/Utilities/Benchmarking_and_Tune_Up/Review_29290_index.html

I tried it out. I think it's a nice tool.

Scarecrow
07-19-2000, 06:40 AM
First of all, you keep going back and forth between losing resources and memory. So which one are you conserned about? They are NOT the same thing. Go here for a better understanding, and it might answer you question too.

http://members.xoom.com/_XMCM/Khephra/a/resource.htm