Skip to main content

Concurrent File Uploads cause "Stream Ended Unexpectedly" errors

4 replies [Last post]
Joined: 2007-11-05

We've let users upload MP3s to private lockers on our site. In testing with limited concurrent uploads, we never had a problem, but when we opened it up to everybody all of the uploads started failing with "stream ended unexpectedly" errors.

Is there any glassfish config we'd need to change to be able to accept many concurrent file uploads of 3-15MB?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-01-18

We are also getting the same exception and searching for the solution.
Did you find any solution?
Thanks in advance
Krishan Babbar

Joined: 2008-05-01

Is this a server side exception (it sounds like it), not client side?

I would guess that your server is just getting so bogged down that the clients give up and drop the connection.

Joined: 2007-11-05

Yes, it is server side. The server was not under high load at all (~10% CPU, memory well under heap limit) but I agree it sounds like the connections were dropped.

What I'm trying to figure out is if there is some glassfish config setting that I need to change to be able to accept concurrent file uploads. As I mentioned before, it works fine as long as there aren't many people trying to upload at the same time, and since there is no shared state between uploaders it seems that it must be some sort of server config issue.

Receive buffer size perhaps? I don't know, haven't found any good docs on *exactly* what that means.

Joined: 2010-09-18

Did you guys ever find a solution? I know this thread is old, but I figured I would still ask.