[
https://issues.apache.org/jira/browse/CXF-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-6976.
------------------------------
Resolution: Fixed
Assignee: Daniel Kulp
Fix Version/s: 3.2.0
3.1.11
3.0.13
Note: there is a workaround if you add
{code}
-Dorg.apache.cxf.JDKBugHacks.defaultUsesCaches=true
{code}
to your MAVEN_OPTS variable, then it should work . That cache needs to be
disabled during runtime, but not for tooling so the maven plugin (and command
line tools) will now set that flag.
> High memory footprint when maven assembly plugin is used together with
> cxf-codegen-plugin
> -----------------------------------------------------------------------------------------
>
> Key: CXF-6976
> URL: https://issues.apache.org/jira/browse/CXF-6976
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 3.1.6
> Environment: Apache Maven 3.3.9
> (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Maven home: C:\projects\build\apache-maven-3.3.9\bin\..
> Java version: 1.8.0_102, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_102\jre
> Default locale: en_US, platform encoding: Cp1250
> OS name: "windows server 2008 r2", version: "6.1", arch: "amd64", family:
> "dos"
> Reporter: Daniel Jelinski
> Assignee: Daniel Kulp
> Fix For: 3.0.13, 3.1.11, 3.2.0
>
> Attachments: pom.xml
>
>
> When assembly plugin is used together with cxf codegen plugin, it is using up
> massive amount of memory, leading to frequent OOM errors and long build
> times. When used alone, both plugins behave nicely.
> Attached POM can be used to replicate the issue. When CXF plugin is commented
> out, assembly plugin finishes within a few seconds, using up minimal amount
> of memory. When the POM is executed as provided, Maven throws OOM when given
> 2GB of memory.
> See also MASSEMBLY-825 for related assembly-plugin report.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)