serving static assets via http is really slow compared to sshfs (apache2/nginx)
- by s1lv3r
After migrating to a new VPS I had some users complaining about slow loading images on their sites. After creating some test files with dd I realized that I can download all files via sshfs with full speed while downloads via web are painfully slow. The larger the file is and the longer the transfer takes, the slower the transfer speed gets.
I thought I had some problems with Apache and just spend the whole evening with replacing Apache2 against nginx for static file serving - with no effect at all.
No I/O wait states in top. Tons of RAM free, no high CPU utilization and hdparm shows a decent I/O performance at all times.
I just have no idea anymore, what's happening on this server.
This is a link to a demo file: http://master.dealux.de/file.tgz
Anybody an idea what I can check out?