I have a car-related site and have dozens of .wmv videos on the website.
During the last 2 years the files began getting larger in size, i.e. between 100-200 Megabytes, instead of 10-20 Megabytes compared to 2-3 years ago.
I noticed that Apache 2.2 began serving those files slower. The bigger the file, the slower it serves.
200 MB file: speed 30KB/s
100 MB file: speed 50KB/s
30 MB file: speed 150KB/s
1 MB file: speed 450+ KB/s
I am on a dedicated server which belongs to myself, so I can see the server stats, there are no problems on the server end.
- I am on a 100 MBit port, no restrictions, no topping on bandwidth.
- Looging into the server via SSH and then "top" shows a maximum of 0.05 load. No load on server.
- I even tried an OCZ Solid State Hard Drive. No changes.
- I have an 8Mbit internet connection at home. When I FTP and try to download the same video, the speed is the same around 50KB/s and never go up.
- If I download using 8-10 threads (my FTP software has a multi-thread downloading feature, which can download up to 20 files at the same time), then my download capacity is maxed, like 700-800KB/s or similar.
I have CentOS on the server. Is the problem caused by Apache, or CentOS? Maybe it is a precaution for restricting a single user not topping up the server's bandwidth. There must be some configuration for this, but where? Any help will be appreciated.