serving static assets via http is really slow compared to sshfs (apache2/nginx)

Posted by s1lv3r on Server Fault See other posts from Server Fault or by s1lv3r
Published on 2013-06-27T22:08:49Z Indexed on 2013/06/27 22:22 UTC
Read the original article Hit count: 402

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?

© Server Fault or respective owner

Related posts about apache2

Related posts about nginx