The tasks jjtree and javacc should accept an attribute to set the max heap size of the JVM that the task invokes.
the code looks as if it was setting -mx140M but that never worked since the command line argument has been overwritten again immediately after that. New maxmemory attribute has been added with svn revision 1055418