idea中 maven编译waimai_risk项目代码,提示系统资源不足,错误信息如下:
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 424 source files to /Users/liulong/workspace/waimai_risk/target/classes
系统资源不足。
有关详细信息, 请参阅以下堆栈跟踪。
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.util.SharedNameTable.fromChars(SharedNameTable.java:99)
at com.sun.tools.javac.util.Name$Table.fromString(Name.java:204)
at com.sun.tools.javac.util.Names.fromString(Names.java:288)
at com.sun.tools.javac.jvm.ClassReader.includeClassFile(ClassReader.java:2377)
at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReade