Boost Download Speed on Linux: Comparing wget and Multithreaded mwget
This article examines the limitations of the single‑threaded Linux wget command for downloading images from Alibaba Cloud storage, presents performance tests showing that the multithreaded alternative mwget can be up to three times faster, and provides step‑by‑step installation instructions.
Scenario
In my project users upload images directly to Alibaba Cloud storage to reduce server load, while the server also needs to keep a copy. I used wget on a schedule to fetch the images. As the number of uploads grew, the single‑threaded wget became a bottleneck, so I looked for a multithreaded alternative and tried mwget.
Test
A 11 MB image stored in the cloud was downloaded five times with both wget and mwget. The average results showed that mwget was roughly three times faster than wget. The initial test was promising; further testing with different files and times will determine whether to adopt mwget in production.
Installation
Below are the steps to install mwget on a CentOS system.
# wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2
# tar -xjvf mwget_0.1.0.orig.tar.bz2
# cd mwget_0.1.0.orig
# ./configure
# make
# make install
# yum install perl-XML-Parser
# yum install gettext
# yum install intltoolSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java High-Performance Architecture
Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
