首页 > 其他 > 详细

【已解决】 IDEA报错:GC overhead limit exceeded?

时间:2020-04-13 00:26:16      阅读:1434      评论:0      收藏:0      [点我收藏+]

1. 问题描述

在运行代码之后,出现以下错误:

Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 107.0 failed 1 times, most recent failure: Lost task 0.0 in stage 107.0 (TID 208, localhost, executor driver): java.lang.OutOfMemoryError: GC overhead limit exceeded

经查询之后,是由于JVM花费太长时间执行GC且只能回收很少的堆内存时抛出的
一般可以通过更改JVM启动配置增加堆大小来解决
参考:https://blog.csdn.net/github_32521685/article/details/89953796

2. 解决方法

  1. file -> settings
  2. 搜索maven,点击importing,修改JVM启动项

技术分享图片

【已解决】 IDEA报错:GC overhead limit exceeded?

原文:https://www.cnblogs.com/cjq10029/p/12688693.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!