Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 45034 invoked from network); 4 Mar 2009 13:02:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 13:02:17 -0000 Received: (qmail 6358 invoked by uid 500); 4 Mar 2009 13:02:17 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 6348 invoked by uid 500); 4 Mar 2009 13:02:17 -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 6337 invoked by uid 99); 4 Mar 2009 13:02:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 05:02:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 13:02:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3512F234C4AC for ; Wed, 4 Mar 2009 05:01:56 -0800 (PST) Message-ID: <1729855753.1236171716202.JavaMail.jira@brutus> Date: Wed, 4 Mar 2009 05:01:56 -0800 (PST) From: "Torsten Mielke (JIRA)" To: issues@cxf.apache.org Subject: [jira] Issue Comment Edited: (CXF-2081) Allow specifying a Java heap size when wsdl2java -compile invokes Java compiler In-Reply-To: <1175496049.1236100256313.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.