You need to specify the heap size separately for both AntlrWorks and for Antlr [when it is run by AntlrWorks]
specify -Xms128m -Xmx1G on the Java command line for invoking AntlrWorks specify -Xms128m -Xmx1G in AntlrWorks::Preferences::General::ANTLR_options see http://www.antlr.org/jira/browse/ST-68 When AntlrWorks runs out of heap it becomes semi non-responsive [the only thing that works is scrolling and quit]. Many GUI actions misbehave in odd ways. Typing a character can lock-up AntlrWorks for 5-10 minutes. On Mac OS X the maximum supported heap size is 1Gigabyte. On Unix/Linux or Windows x64 it may be larger. This SQL 2003 grammar has infinite look-ahead [according to Terrence] in some of the rules relating to SQL expressions. The grammar will not generate no matter how much memory you have until the infinite look-ahead is resolved. On Mon, Apr 18, 2011 at 3:25 PM, Chris K Wensel <[email protected]> wrote: > Hi all > > I'm playing around with the new SQL 2003 grammars on the website. > > There are notes that the antlr tool needs 1024m for the jvm in the grammar, > i've found i need 4 times that much to get the code generation to not die > after 40 minutes. > > so far the code gen tool has been running for a couple hours using default > arguments, and I was wondering if anyone knew if this was out of the > ordinary or not. and if not, how long I should expect it to run. > > thanks for any advice! > > cheers, > chris > > -- > Chris K Wensel > [email protected] > http://chris.wensel.net/ > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
