[
https://issues.apache.org/jira/browse/CXF-5912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077692#comment-14077692
]
Daniel Kulp commented on CXF-5912:
----------------------------------
Two things that may help:
1) Upgrade to a newer version of CXF
2) Make sure you are using Woodstox (and the most recent versions as well), not
IBM's StAX parser
There are a lot of other OOM errors and other attacks that can easily occur if
you don't do both of the above.
> Handling of big files in Base64
> -------------------------------
>
> Key: CXF-5912
> URL: https://issues.apache.org/jira/browse/CXF-5912
> Project: CXF
> Issue Type: Improvement
> Components: WS-* Components
> Affects Versions: 2.7.3
> Environment: WebSphere 8.5
> Reporter: Abel Salgado Romero
> Attachments: error_log.txt
>
>
> Hi,
> When dealing with big files (10MB or more) in Base64 an OutOfMemory exception
> is created, even when the server has enough memory to load it.
> We would like to know if another treatment is possible to avoid the full
> message from being loaded into memory during unmarshalling.
> For instance when sending files in MTOM (900MB) no memory issue arise because
> they are streamed through disc.
> So far we have seen that this error happends because the full message is sent
> to Stax parser without any pre-treatment.
--
This message was sent by Atlassian JIRA
(v6.2#6252)