Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33CA8CE32 for ; Mon, 26 Jan 2015 12:55:35 +0000 (UTC) Received: (qmail 91809 invoked by uid 500); 26 Jan 2015 12:55:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 91771 invoked by uid 500); 26 Jan 2015 12:55:35 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 91759 invoked by uid 99); 26 Jan 2015 12:55:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2015 12:55:35 +0000 Date: Mon, 26 Jan 2015 12:55:35 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6219) Handling concurrent Base64 files causes memory overflow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291789#comment-14291789 ] Sergey Beryozkin commented on CXF-6219: --------------------------------------- Sorry if it is off-topic. For my own future work (JWS/JWE compact read optimization) I'll need to add a Base64 InputStream filter for the base64 decoding occur only when IS is read. I wonder if having such a reader used may help in your case if a base64 field is repesented as DataSource or InputStream ? > Handling concurrent Base64 files causes memory overflow > ------------------------------------------------------- > > Key: CXF-6219 > URL: https://issues.apache.org/jira/browse/CXF-6219 > Project: CXF > Issue Type: Improvement > Components: Soap Binding, WS-* Components > Affects Versions: 2.7.4 > Environment: Production > Reporter: Abel Salgado Romero > Labels: documentation > > In a previous issue (https://issues.apache.org/jira/browse/CXF-5912) we were advised to update CXF version to avoid OOM errors. > We did so (to 2.74) and the problem was fixed, we also applied a size limit of 20MB using the `org.apache.cxf.stax.maxTextLength` property. > However, the memory consumption in the server is extremely higher than the actual data sent, having 1GB of Heap we get OOM sending just 6 concurrent requests of 20 MB. > Reviewing some documents and other JIRA issues, we understand that Base64 is not optimized and not recomended. Can you confirm if this is the case or if there is a way to optimize how Base64 attachments are processed. > Otoh, MTOM works like a charm ;) -- This message was sent by Atlassian JIRA (v6.3.4#6332)