Apache2 file downloads slow






















Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta.

Now live: A fully responsive profile. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.

The Files are outside the Document-Root. I also tested it with Apache and without X-Sendfile with the same file within the Document Root - same thing here! So I tested downloading the same file, with the same client, the same infrastructure on both sides and the same internet-connection a few seconds later via PHP with readfile:. I repeated this test using both options more than a multiple times and the result was the same every time trying. The only difference besides the download-speed was a waiting time of a few seconds depending on the size of the file which was downloaded , when trying with the PHP readfile method.

When repeating the PHP readfile method instantly, the waiting time didn't appear again. It sounds to me like an issue with the default value of SendBufferSize. Try setting it explicitly.

Response by poster: Thanks for the thought, but it did not work. The SendBufferSize directive was not initially in the httpd. I then tried a few different values but there was no change in the transfer speed. I wonder if the limiting factor is your server's ability to do directory operations. And the network seems to be working great. Any ideas? We don't do anything fancy, just want to be able to download! Bryan Butler. Join our community to see this answer!

Unlock 1 Answer and 13 Comments. Andrew Hancock - VMware vExpert.



0コメント

  • 1000 / 1000