> Od: "Daniil Sosonkin" <dan...@orbisfn.com>
> Komu: Stripes Users List <stripes-users@lists.sourceforge.net>
> Datum: 30.07.2010 14:46
> Předmět: Re: [Stripes-users] File Download
>
>There's nothing wrong with the code, but everyone sees that. So perhaps the 
>problem lies in your web server - tomcat or whatever you're using. The problem 
>with these errors is that there's no stack trace available so its hard to 
>figure out where the issue actually is. After looking at the 
>StreamingResolution, I see that it uses PrintWriter to send back the output 
>for the Reader. Perhaps you can override stream method and use 
>ServletOutputStream instead of PrintWriter, although you're passing 
>InputStream so it wouldn't apply. Somewhere down the line, there is too much 
>buffering going on. I've written a video download ActionBean some years ago; 
>it was sending 100MB files with no problems. The code is below and is 
>identical to yours. How much memory to give to your application engine?


I tried put 200MB file to glassfish/domains/domain1/docroot and download it 
directly from here http://localhost:8080/file.avi and I'm able to download 
first 40 - 160 MB of file only and in glassfish log is:

StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default 
threw exception
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default 
threw exception
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

So it's problem with glassfish. I know that this isn't about stripes, but have 
anyone any idea how to fix it?

Thanks. Radim


>
>Daniil
>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to