cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessio Soldano (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-6739) Reduce memory pressure in org.apache.cxf.attachment.AttachmentDeserializer
Date Fri, 08 Jan 2016 22:10:40 GMT

     [ https://issues.apache.org/jira/browse/CXF-6739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alessio Soldano updated CXF-6739:
---------------------------------
    Description: Back in 2013, the api (now core) went through a major refactoring to remove
direct dependency to javax.mail: https://github.com/apache/cxf/commit/6ae8f4afe219581938c0020612212faa3e770064
Custom code for attachment deserialization was added, but unfortunately that seems to be writing
a lot of char[] to the memory, because of a lot of String instances being created for parsing
the attachment inputstream into the headers TreeMap. The process could be optimized to avoid
useless string / char[] copies. It also seems that the special handling of lines starting
with spaces there is over complicated and covering a condition that can never be true.  (was:
Back in 2013, the api (now core) went through a major refactoring to remove direct dependency
to javax.mail: https://github.com/apache/cxf/commit/6ae8f4afe219581938c0020612212faa3e770064
Custom code for attachment deserialization was added, but unfortunately that seems to be writing
a lot of char[] to the memory, because of a lot of String instances being created for parsing
the attachment inputstream into the headers TreeMap. The process could be optimized to avoid
useless string / byte[] copies. It also seems that the special handling of lines starting
with spaces there is over complicated and covering a condition that can never be true.)

> Reduce memory pressure in org.apache.cxf.attachment.AttachmentDeserializer
> --------------------------------------------------------------------------
>
>                 Key: CXF-6739
>                 URL: https://issues.apache.org/jira/browse/CXF-6739
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.0.0-milestone1
>            Reporter: Alessio Soldano
>            Assignee: Alessio Soldano
>             Fix For: 3.1.5, 3.2.0
>
>
> Back in 2013, the api (now core) went through a major refactoring to remove direct dependency
to javax.mail: https://github.com/apache/cxf/commit/6ae8f4afe219581938c0020612212faa3e770064
Custom code for attachment deserialization was added, but unfortunately that seems to be writing
a lot of char[] to the memory, because of a lot of String instances being created for parsing
the attachment inputstream into the headers TreeMap. The process could be optimized to avoid
useless string / char[] copies. It also seems that the special handling of lines starting
with spaces there is over complicated and covering a condition that can never be true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message