large http upload freezes

Upload core product.
Post Reply
tszarans
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

large http upload freezes

Post by tszarans »

I have a working setup of jfileupload 2.6 . If I try and transfer a large file via http (200M+) the progress bar stops at around 77% and does not continue. I am using apache 2.2/mod_perl2, small files however work without any issues. Files that are 100M get uploaded no problem.

After waiting for a long period (5-10 minutes) and hit cancel I get the follow log message in the apache error log.

Apache2::RequestIO::read: (70014) End of file found at (eval 1972) line 5

The java console log does not show anything of note.

Anyone have any ideas?

Thanks!
Tony

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: large http upload freezes

Post by support »

It might be a timeout issue or file size issue on server side. Could you check your Apache/Perl configuration?

tszarans
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

Re: large http upload freezes

Post by tszarans »

I don't believe it is a timeout issue, as the upload happens very fast over the local network (1 to 2 seconds) 3/4 of the 100M is uploaded, then the pause happens (status bar stops).

I'm using a default install of Apache 2.2 on CentOS 5.4 - what would I look for regarding timeouts?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: large http upload freezes

Post by support »

Time out usually occurs after 15 minutes so I thunk you're correct, it's not a time out issue. So, I think it's upload size issue with Perl or Apache. Could you check in your Apache or Perl configuration for HTTP POST size limit?

tszarans
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

Re: large http upload freezes

Post by tszarans »

I'm not 100% sure what to check for. Apache 2 documentation has options regarding LimitRequestBody (default 0 - means unlimited or 2G) which I do not have set.

The upload java client is freezing before handing off anything to the perl program.

This is the log from the java console on a large file:

Jul 21, 2010 6:37:31 AM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Users\someuser\Desktop\400Mfile.rar
network: Connecting http://somehost:80/ with proxy=DIRECT
[client freezes]

This is the log from the java console with a small file:
Jul 21, 2010 6:40:10 AM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Users\someuser\Desktop\6Mfile.rar
network: Connecting http://somehost:80/ with proxy=DIRECT
Jul 21, 2010 6:40:10 AM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload Status code = 200
Jul 21, 2010 6:40:10 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Jul 21, 2010 6:40:10 AM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload completed
Jul 21, 2010 6:40:10 AM jfileupload.upload.client.MApplet post
INFO: Posting
network: Connecting http://somehost/menu/index.html?
network: Connecting http://somehost:80/ with proxy=DIRECT
network: Connecting http://somehost/menu/index.html?
Jul 21, 2010 6:40:11 AM jfileupload.upload.client.MApplet redirect
INFO: Forwarding
basic: Starting applet teardown
basic: Finished applet teardown
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1107c05
basic: Plugin2ClassLoader.addURL parent called for http://somehost/jclientupload/lib/jfileupload.jar
basic: Plugin2ClassLoader.addURL parent called for http://somehost/jclientupload/lib/httpimpl.jar
basic: Plugin2ClassLoader.addURL parent called for http://somehost/jclientupload/lib/chttpclient.jar
basic: Plugin2ClassLoader.addURL parent called for http://somehost/jclientupload/lib/clogging.jar
.
.
.
.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: large http upload freezes

Post by support »

This log reports that upload completed. Then it tries to forward to another page. Does it freeze after upload?

tszarans
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

Re: large http upload freezes

Post by tszarans »

No - the progress bar does not complete and the web server does not see the forward request.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: large http upload freezes

Post by support »

Mmmhh, it does not match to logs. Which JRE version do you have?

Post Reply