Downloader icon indicating copy to clipboard operation
Downloader copied to clipboard

Slowing down in big files

Open peyman1959 opened this issue 5 years ago • 5 comments

hi when I download file with 300-400 MB there is no problem but when i use it to download 1.8 GB file its start slowing down after 59%

peyman1959 avatar Feb 16 '20 14:02 peyman1959

it slowed down to zero and stoped just a half of file downloaded

peyman1959 avatar Feb 16 '20 15:02 peyman1959

it wasn't with big files it happens again in 358mb file

peyman1959 avatar Feb 16 '20 19:02 peyman1959

Please provide a minimum example demonstrating the issue. But my first guess would be that it has something to do with the network connection or configuration of the machine running the download. How many parts do you do in parallel and what is your System.Net.ServicePointManager.DefaultConnectionLimit?

Toqe avatar Feb 17 '20 07:02 Toqe

System.Net.ServicePointManager.DefaultConnectionLimit = 8; var numberOfParts = 4;

the network connection is fine, I download the same file with IDM when it's working normally CPU 3% Memory 9.1MB Disk 3.1MB/s Network 14.5Mbps when is slowing down CPU 0.2% Memory 9.1MB Disk 0MB/s Network 0Mbps I close and open it and it working fine

peyman1959 avatar Feb 17 '20 14:02 peyman1959

@Toqe I guess the problem in https://github.com/Toqe/Downloader/blame/1f9579f833038b374ac7144e77db9cbe2425078a/Downloader.Business/Download/MultiPartDownload.cs#L221 There might be no collide range; as a result, method Single() throws an exception, and downloading gets stuck at this stage.

KreminT avatar May 06 '24 16:05 KreminT