You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Torsten Mielke (JIRA)" <ji...@apache.org> on 2009/03/04 13:59:56 UTC

[jira] Updated: (CXF-2081) Allow specifying a Java heap size when wsdl2java -compile invokes Java compiler

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

Torsten Mielke updated CXF-2081:
--------------------------------

    Attachment: CXF-2081.patch

Attaching a possible patch based on version CXF 2.1.4.0-fuse (which should be equivalent to Apache 2.1.4.0). 
Instead of introducing another wsdl2java option, this patch simply uses the -Xmx settings of wsdl2java itself and passes it on to javac as -J-Xmx option using this line of code:

argList.add("-J-Xmx" + Runtime.getRuntime().maxMemory());


> Allow specifying a Java heap size when wsdl2java -compile invokes Java compiler
> -------------------------------------------------------------------------------
>
>                 Key: CXF-2081
>                 URL: https://issues.apache.org/jira/browse/CXF-2081
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.1.4
>            Reporter: Torsten Mielke
>            Priority: Minor
>         Attachments: CXF-2081.patch
>
>
> Running wsdl2java -compile will also kick off javac in order to compile the generated files. In case a large number of files got generated, the compilation might fail with an out of memory error. We could add another option that allows specifying a maximum heap size for the java compiler. Perhaps another -mx switch or so.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.