My project size was 250mb, i tried to create an instance for org.reflections.Reflections class, but it throws outofmemory exception after 2min of execution. Is there any solution/alternative for org.reflections.Reflections class.
Here is my code :
public class FinalSummary {
public static void main(string arg[]){
Reflections eflections = new Reflections("com.me.summary");
}
}
To execute this one line it takes approx 1m 40s and throws this outofmemory error.
Here is the error :
Information:Using javac 1.7.0_79 to compile java sources Information:java: The system is out of resources. Information:java: Consult the following stack trace for details. Information:java: at com.sun.tools.javac.tree.TreeMaker.Ident(TreeMaker.java:409) Information:java: at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1008) Information:java: at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:701) Information:java: at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:672) Information:java: at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:628) Information:java: at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:610) Information:java: at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:1644) Information:java: at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:1561) Information:java: at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:1575) Information:java: at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:1706) Information:java: at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:1710) Information:java: at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:1598) Information:java: at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:1767) Information:java: at com.sun.tools.javac.parser.JavacParser.methodDeclaratorRest(JavacParser.java:2696) Information:java: at com.sun.tools.javac.parser.JavacParser.classOrInterfaceBodyDeclaration(JavacParser.java:2645) Information:java: at com.sun.tools.javac.parser.JavacParser.classOrInterfaceBody(JavacParser.java:2573) Information:java: at com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:2421) Information:java: Errors occurred while compiling module 'Master_Repo' Information:11/29/2016 6:21 PM - Compilation completed with 1 error and 0 warnings in 1m 13s 905ms Error:java: OutOfMemoryError: insufficient memory
Aucun commentaire:
Enregistrer un commentaire