Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 07:01:22 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: MyDefrag 4.0 has a serious memory leak  (Read 3004 times)
133794m3r
Newbie
*
Posts: 2


View Profile
« on: July 22, 2009, 01:32:49 am »

On windows 7 i have no idea if it's on other OSes but i beleive it is. Doing the slow optimize it has a memory leak. It starts up with ~80MB of ram used. And within oh let's say 15minutes it's up to ~90MB of ram. It keeps rising to the point where windows actually says sorry this program must be closed due to lack of ram.  I left my pc on last night to do the slow optimize as i used to do that with jkdefrag 3.41 b/c it sometimes took awhile to do the entire hard drive. When i woke up it had been using ~2.99GB of ram. I say this b/c even though i couldn't see how much it was using as windows auto-closed it. I have ~4GB of ram and for some reason when a program uses 2.8GB+ it auto-shuts it down.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: July 22, 2009, 01:41:22 am »

MyDefrag does not have a memory leak. It simply needs a lot of memory.
Logged
133794m3r
Newbie
*
Posts: 2


View Profile
« Reply #2 on: July 22, 2009, 03:38:46 pm »

So you're telling me it increasing it's memory usage and continually increasing it the longer it runs is not a memory leak? Also 2.xGB+ of RAM from 90MB is not a memory leak. I thought by my understanding of memory leaks was that when a program increases it's memory usage over time and then just keeps increasing it by just being used it is/does have a memory leak. So my understanding of memory leaks is wrong correct?
Logged
cg
JkDefrag Hero
*****
Posts: 101


View Profile
« Reply #3 on: July 22, 2009, 04:00:34 pm »

Jeroen has already talked about looking into making MyDefrag more efficient now that its out of Beta mode.  Memory concerns were brought up a while back in this post:

http://www.mydefrag.com/forum/index.php?topic=1622.0

One of the suggestions was to use something like SQLite to store all of the file and folder information rather than using RAM.  SQLite can have RAM based or file based databases and is used by many systems out there including Firefox.  You could even have a MyDefrag setting to allow the scripts to choose whether the database was file based or RAM based.  Talk about nice flexibility!
« Last Edit: July 22, 2009, 04:02:28 pm by cg » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: July 22, 2009, 05:19:38 pm »

So you're telling me it increasing it's memory usage and continually increasing it the longer it runs is not a memory leak?
MyDefrag does not have a memory leak, as I said before. I suggest that you take a step back and think about the possible reasons for what you have noticed a bit more, and ask questions instead of jumping to conclusions and posting a thread with as the title "MyDefrag 4.0 has a serious memory leak".
Logged
gemisigo
JkDefrag Hero
*****
Posts: 110


View Profile
« Reply #5 on: July 23, 2009, 09:12:10 am »

So you're telling me it increasing it's memory usage and continually increasing it the longer it runs is not a memory leak? Also 2.xGB+ of RAM from 90MB is not a memory leak. I thought by my understanding of memory leaks was that when a program increases it's memory usage over time and then just keeps increasing it by just being used it is/does have a memory leak. So my understanding of memory leaks is wrong correct?

Yepp, your understanding of memory leaks is simply wrong. A memory leak is when an application/program/code acquires memory from os and does not release it when it is no longer required/in use. Either because it is forgotten when it quits or because it becomes unreachable and the app is no longer able to release it (object created but the pointer lost, or whatever the cause may be). It has nothing to do with the size of that memory area, size does not matter at all, it can be 1 byte or hundreds of megs and it can be easily detected.

As long as MyDefrag takes advantage of the memory it gets from the os and it releases it when it quits, it is not a memory leak. The quit is the keyword here since it is designed to quit at the moment it has done what it should and not to run indefinitely. It may utilize information located in that memory right till the end. As we do not know how it works internally (it is not open source) we cannot assert it has a memory leak. We can say, of course, that it has an enormous memory requirement, that could be lowered somehow, or its memory management strategy may not be the best, which is a thing Jeroen surely wants to improve, he has stated that before. It was explained dozen times why is MyDefrag so greedy on memory.

But what you did was an extremely irresponsible thing to do. You should not declare something you cannot prove.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!