Author |
|
vijayt779
Joined: 02 Jul 2014 Posts: 8 Location: USA
|
Posted: Wed 16 Jul '14 19:01 Post subject: Apache download fails |
|
|
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
|
Posted: Wed 16 Jul '14 22:35 Post subject: |
|
|
Use EnableSendfile On for the directory storing these large files. |
|
Back to top |
|
vijayt779
Joined: 02 Jul 2014 Posts: 8 Location: USA
|
Posted: Fri 18 Jul '14 19:53 Post subject: |
|
|
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
|
Posted: Fri 18 Jul '14 20:48 Post subject: |
|
|
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
|
Posted: Tue 22 Jul '14 20:55 Post subject: |
|
|
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
|
Posted: Wed 23 Jul '14 9:05 Post subject: |
|
|
Try "EnableSendfile On" |
|
Back to top |
|
vijayt779
Joined: 02 Jul 2014 Posts: 8 Location: USA
|
Posted: Mon 04 Aug '14 20:03 Post subject: |
|
|
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
|
Posted: Tue 05 Aug '14 9:56 Post subject: |
|
|
Any updates would really help me.
Appreciate your response! |
|
Back to top |
|