Ant Download Manager (AntDM) Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month
antdm
Possible Memory Leak Vote_lcapPossible Memory Leak Voting_barPossible Memory Leak Vote_rcap 
jvidal
Possible Memory Leak Vote_lcapPossible Memory Leak Voting_barPossible Memory Leak Vote_rcap 
919263
Possible Memory Leak Vote_lcapPossible Memory Leak Voting_barPossible Memory Leak Vote_rcap 


Possible Memory Leak

Go down

Possible Memory Leak Empty Possible Memory Leak

Post by jvidal on Wed 27 May - 20:47

Hi!

I was downloading the ISOs for W10 v2004 and I noticed that AntDM's memory usage went through the roof while downloading, well over 1GB, up to about 1.2GB.
Then I downloaded another ISO with FDM and it did it while using only about 115-120MB...

Is this normal?

thanks!

jvidal

Messages : 285
Date d'inscription : 2018-12-17

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Thu 28 May - 6:11

Please give me link on this ISO file I will test it.

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by jvidal on Thu 28 May - 6:33

OK. Here it goes:
https://software-download.microsoft.com/pr/Win10_2004_Spanish(Mexico)_x64.iso?t=97aa96c2-d64a-4bd9-996a-7797d823f304&e=1590726637&h=da0279c5b564e440f9885265420e660b

in less than 30 seconds, the memory usage went over 700MB (just tested it again).after about a minute 1.3GB and the download stalls. And while AntDM is not downloading (download stalled), the memory usage stays at 1.3GB...then, after about aminute or so, the download continues, with ANTDM still using over 1GB of RAM.
for me it's not such a big deal, I have 16GB RAM, but for someone with maybe 4 GB this can be a real problem...
after a few (2 or 3) minutes, the download completes and memory usage returns to about 10~11 MB.

jvidal

Messages : 285
Date d'inscription : 2018-12-17

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Thu 28 May - 8:41

I could not reproduce your problem.
In my test, the memory fluctuation was ~45-80MB. And 16MB after downloading.
Please do the software export settings (from main menu) and send me on support@antdownloadmanager.com. I will try to repeat test with your settings.

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Thu 28 May - 9:19

I was able to approach your mem usage ~460MB when I set the buffer to 10MB and 64 threads (64*10MB to 640MB.).
These are extreme (not recommended settings). There may be even more memory allocation (even if there are fewer threads) if a slow SSD disk is used.
The reason is that due to the slow disk the buffers do not have time to be written to the file and they quickly accumulate in memory.

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by jvidal on Thu 28 May - 19:06

I do not have an SSD, I have a regular disk (which is , of course, a lot slolwer than an SSD).
My settings are 8 threads and 5120 buffer size, not even near 64 and 10...

jvidal

Messages : 285
Date d'inscription : 2018-12-17

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Fri 29 May - 6:41

I tested your settings on a slow virtual machine.
No memory leak. After downloading the file, the memory is fully returned to OS.
The reason is that I wrote above.
Files buffers do not have time to be written to disk when download starts. They accumulate in RAM so as not to slow down the download speed.
There is no limit of accumulation at the top, so as not to slow down the download speed and not to let the demanding user to write - "slowly" or "IDM faster". Such users often like to write it.

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by jvidal on Fri 29 May - 7:07

So, in short, this behavior is normal?

jvidal

Messages : 285
Date d'inscription : 2018-12-17

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Fri 29 May - 7:16

Acceptably.
The main thing is to discard the accumulated memory after downloading.

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by jvidal on Fri 29 May - 7:52

which, AntDM does, after downloaing, memoryusage returns to normal. The only thing that bothers me is the unsually high memory usage while downloading big files. never seen it before.

jvidal

Messages : 285
Date d'inscription : 2018-12-17

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Fri 29 May - 8:05

I do not like it too, but I go on about users who measure the quality of the downloader by speed.

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by jvidal on Fri 29 May - 19:30

What also puzzles me is why other DMs (like FDM) download the same file while using a LOT less memory...different approach, maybe?

jvidal

Messages : 285
Date d'inscription : 2018-12-17

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by antdm on Sat 30 May - 5:38

Sure!

antdm

Messages : 365
Date d'inscription : 2017-08-14

Back to top Go down

Possible Memory Leak Empty Re: Possible Memory Leak

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum