使用OpenJDK 8
构建Apache Solr 7.1.0时,我遇到以下错误[javac] Compiling 1148 source files to /solr-7.1.0/solr/build/solr-core/classes/java [javac] [javac] [javac] The system is out of resources. [javac] Consult the following stack trace for details. [javac] java.lang.StackOverflowError [javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scanExpr(Flow.java:1635) [javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitApply(Flow.java:2258) [javac] at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465) [javac] at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) [javac] at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404) [javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:1382) [javac] at com.sun.tools.javac.tree.TreeScanner.visitSelect(TreeScanner.java:264) [javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitSelect(Flow.java:2337)
使用-Xss选项增加堆栈大小并没有解决问题。 我试图通过修改solr默认选项来增加堆栈大小。 但它并没有解决这个问题。