You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Pastrnak (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/10/11 09:44:29 UTC

[jira] [Issue Comment Edited] (WICKET-4113) Whole response is cached in memory

    [ https://issues.apache.org/jira/browse/WICKET-4113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124421#comment-13124421 ] 

Peter Pastrnak edited comment on WICKET-4113 at 10/11/11 7:42 AM:
------------------------------------------------------------------

Take a look at https://issues.apache.org/jira/browse/WICKET-4019 version 1.5.1.3, maybe it helps.
                
      was (Author: pasto):
    Check out version 5.2.1.2 - https://issues.apache.org/jira/browse/WICKET-4019, maybe it helps.
                  
> Whole response is cached in memory
> ----------------------------------
>
>                 Key: WICKET-4113
>                 URL: https://issues.apache.org/jira/browse/WICKET-4113
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.18
>            Reporter: Adam PierzchaƂa
>            Priority: Critical
>
> In class {{org.apache.wicket.protocol.http.portlet.WicketResponseState}} there is used {{CharArrayWriterBuffer}} and {{ByteArrayOutputStream}} to cache in memory whole response.
> This creates issues with Java heap space when downloading big files:
> {noformat}
> Caused by: java.lang.OutOfMemoryError: Java heap space
> 	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:70)
> 	at org.apache.wicket.protocol.http.portlet.WicketResponseState$1.write(WicketResponseState.java:439)
> 	at java.io.OutputStream.write(OutputStream.java:99)
> {noformat}
> I think there should be used stream implementation that caches big data amounts on disk e.g. {{org.apache.cxf.io.CachedOutputStream}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira