I am getting this below error upon running build.xml file running through ANT through Eclipse although I am passing additional vm arguments -Xms512m -Xmx1524m
, but still I am getting out of heap space error. Please advise how to fix this.
compileEJBSource:
[echo] compileEJBSource ...
[javac] Compiling 4 source files to C:\AVN\FT\CoreERT\Product\classes
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: Java heap space
[javac] at com.sun.tools.javac.parser.Scanner.getRawCharacters(Scanner.java:1075)
[javac] at com.sun.tools.javac.parser.DocCommentScanner.getLineMap(DocCommentScanner.java:417)
[javac] at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:2310)
[javac] at com.sun.tools.javac.parser.EndPosParser.parseCompilationUnit(EndPosParser.java:83)
[javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:595)
[javac] at com.sun.tools.javac.main.JavaCompiler.complete(JavaCompiler.java:741)