logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache download fails
Author
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Wed 16 Jul '14 19:01    Post subject: Apache download fails Reply with quote

Dear All,

Download request (261mb file) to my apache webserver fails, sometimes it is working and sometimes not.

When I checked the webserver logs I found lots of interrupted downloads (based on the bytes transfer)

This is a critical issue any help is greatly appreciated.

Please..

Thanks much
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 16 Jul '14 22:35    Post subject: Reply with quote

Use EnableSendfile On for the directory storing these large files.
Back to top
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Fri 18 Jul '14 19:53    Post subject: Reply with quote

Is it okay if the file get served from NFS mount?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 18 Jul '14 20:48    Post subject: Reply with quote

The docs say "With a network-mounted DocumentRoot (e.g., NFS, SMB, CIFS, FUSE), the kernel may be unable to serve the network file through its own cache."

The word "may" to me says maybe it can, maybe not. I don't think it will hurt to try, worst that can happen is it cannot.
Back to top
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Tue 22 Jul '14 20:55    Post subject: Reply with quote

there are 3 web servers behind the load balancer. And it is very random it works for the 1st time and not for the 2nd time and works again for the 3rd request within 1 hour time frame.

Basically the client is accessing the download through akamai, akamai is contacting the origin and it fails but not all the time. Any clue to narrow down the problem?

I am also checking if there is a bandwidth cap which is interrupting but to me it looks like some thing from apache is interrupting. Any thoughts
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Wed 23 Jul '14 9:05    Post subject: Reply with quote

Try "EnableSendfile On"
Back to top
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Mon 04 Aug '14 20:03    Post subject: Reply with quote

Hi All

I did enable Sendfile ON but no luck, still I could see the downloads fail.
Any other idea? I am currently at httpd 2.4.4, does upgrading to the latest stable version help?

Please help me.

Thanks
Back to top
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Tue 05 Aug '14 9:56    Post subject: Reply with quote

Any updates would really help me.

Appreciate your response!
Back to top


Reply to topic   Topic: Apache download fails View previous topic :: View next topic
Post new topic   Forum Index -> Apache