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: Returning large binary files - throttled?
Author
dode888



Joined: 29 Jan 2008
Posts: 4

PostPosted: Tue 29 Jan '08 19:18    Post subject: Returning large binary files - throttled? Reply with quote

I'm new to Apache, on Windows 2003 Server.

Our application, OpenInsight, returns .pdf files. The files shorter than about 2MB transfer quickly. However, those larger usually fail.

Is there some setting that can be changed so that our large files will be transfered?

Thanks,
Dave
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 30 Jan '08 11:21    Post subject: Reply with quote

Which version of Apache do you use? How large are that files? Apache 2.0 supports files up to 1.99 GB. Apache 2.2 now supports lager files.

Anything in your error log? How do you init the transfer? By a script?
Back to top
dode888



Joined: 29 Jan 2008
Posts: 4

PostPosted: Wed 30 Jan '08 19:25    Post subject: Reply with quote

Apache version 2.2. Files over 2MB are slow or not transfered. They can be up to 20MB.

I saw nothing in the error log.

The transfer is via http from my OpenInsight program (cgi).
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 31 Jan '08 10:30    Post subject: Reply with quote

I'm not used to cgi, but maybe there is a timeout? Or resource limit?
Back to top
dode888



Joined: 29 Jan 2008
Posts: 4

PostPosted: Fri 01 Feb '08 19:39    Post subject: Reply with quote

That's what I'm asking about... a timeout or a resource limit.

I suspect that there is a timeout setting about cgi. Since the http server executes the cgi program it has to eventually provide a response to the browser. If the cgi program stops or takes too long to respond, then the http server can provide some explanation.

I don't get an explanation from apache. I'm trying to move from Sambar where these is an actual explanation "Maximum execution time" exceeded.

So, what/where is the apache setting that sets the corresponding limit?

Tx
Back to top
glsmith
Moderator


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

PostPosted: Fri 01 Feb '08 20:04    Post subject: Reply with quote

The timeout wouldn't be in the cgi, the cgi only initiates the actual file download.

About how long in the download does the timeout occur?

There is the "TimeOut" directive, which is set at 5 minutes.
It's a multi-purpose directive so the docs state.

Quote:

The TimeOut directive currently defines the amount of time Apache will wait for three things:

1. The total amount of time it takes to receive a GET request.
2. The amount of time between receipt of TCP packets on a POST or PUT request.
3. The amount of time between ACKs on transmissions of TCP packets in responses.

We plan on making these separately configurable at some point down the road. The timer used to default to 1200 before 1.2, but has been lowered to 300 which is still far more than necessary in most situations.


So if your downloads are dying at 5 minutes, may be worth looking into.

I listen to my mp3 files at work served through my Apache, I know I am getting files as large as 16.5MB down no problem. I am not sure it takes longer than 5 minutes for the file to transfer however. I have one that is 27MB but not sure I've ever encountered that one at the office.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 01 Feb '08 21:16    Post subject: Reply with quote

glsmith wrote:

I listen to my mp3 files at work served through my Apache

Doesn't the program download the file? A normal download program sends a keep alive request, doesn't it?
Or did you install a streaming module?


So long
James


Support for more than 2 GB
Back to top
glsmith
Moderator


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

PostPosted: Sat 02 Feb '08 8:56    Post subject: Reply with quote

flash mp3 player with a perl jukebox script
yes, the flash player downloads the file , I doubt it has a keep alive built in since the player is nothing fancy. I do not see any difference whether a flash player downloads or a browser downloads, the file can only download as fas as bandwidth allows.

No special module in Apache.
Back to top
dode888



Joined: 29 Jan 2008
Posts: 4

PostPosted: Sat 02 Feb '08 23:35    Post subject: Reply with quote

Sorry. After all this I talked again to tech support on the cgi program, and we found a memory limit had been exceeded in their software. And it was not reporting the problem.

So, Apache may not be the problem.

Thanks all.
Back to top


Reply to topic   Topic: Returning large binary files - throttled? View previous topic :: View next topic
Post new topic   Forum Index -> Apache