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 14:01:56 UTC
[jira] Issue Comment Edited: (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:comment-tabpanel&focusedCommentId=12678723#action_12678723 ]
tmielke edited comment on CXF-2081 at 3/4/09 5:01 AM:
-------------------------------------------------------------
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());
So users can set -Xmx in the wsdl2java script and that setting will be propagated to the javac compiler as well. This should prevent OutOfMemoryErrors going forward.
was (Author: tmielke):
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.