idea 本地运行项目 报错:GC overhead limit exceede

今天在运行之前的项目idea一直在报错

java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.lang.String.valueOf(String.java:3084)
	at com.sun.tools.javac.util.Convert.quote(Convert.java:261)
	at com.sun.tools.javac.util.Convert.quote(Convert.java:240)
	at com.sun.tools.javac.tree.Pretty.visitLiteral(Pretty.java:1198)
	at com.sun.tools.javac.tree.JCTree$JCLiteral.accept(JCTree.java:2037)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:193)
	at com.sun.tools.javac.tree.Pretty.visitAssign(Pretty.java:1017)
	at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1686)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:193)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:208)
	at com.sun.tools.javac.tree.Pretty.printExprs(Pretty.java:222)
	at com.sun.tools.javac.tree.Pretty.printExprs(Pretty.java:233)
	at com.sun.tools.javac.tree.Pretty.visitAnnotation(Pretty.java:1373)
	at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:2317)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:193)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:208)
	at com.sun.tools.javac.tree.JCTree.toString(JCTree.java:410)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at com.sun.tools.javac.comp.Check.validateTypeAnnotation(Check.java:2745)
	at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitAnnotation(Attr.java:4484)
	at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:2317)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
	at com.sun.tools.javac.tree.TreeScanner.visitModifiers(TreeScanner.java:315)
	at com.sun.tools.javac.tree.JCTree$JCModifiers.accept(JCTree.java:2343)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
	at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitMethodDef(Attr.java:4510)
	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
	at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitClassDef(Attr.java:4575)
	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:693)

根据报错信息可以明显的看出项目oom;

修改idea里这两个值即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值