GC overhead limit exceeded running sbt compilation

4,092 views
Skip to first unread message

Tim P

unread,
Sep 30, 2013, 2:21:07 PM9/30/13
to scala...@googlegroups.com
Hi
Can anyone shed any light on this?

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at sbt.ConcurrentRestrictions$$anon$4.take(ConcurrentRestrictions.scala:196)
at sbt.Execute.next$1(Execute.scala:88)
at sbt.Execute.processAll(Execute.scala:91)
at sbt.Execute.runKeep(Execute.scala:69)
at sbt.EvaluateTask$.liftedTree1$1(EvaluateTask.scala:183)
at sbt.EvaluateTask$.sbt$EvaluateTask$$run$1(EvaluateTask.scala:183)
at sbt.EvaluateTask$.runTask(EvaluateTask.scala:198)
at sbt.Aggregation$$anonfun$3.apply(Aggregation.scala:67)
at sbt.Aggregation$$anonfun$3.apply(Aggregation.scala:65)
at sbt.EvaluateTask$.withStreams(EvaluateTask.scala:153)
at sbt.Aggregation$.timedRun(Aggregation.scala:65)
at sbt.Aggregation$.runTasks(Aggregation.scala:74)
at sbt.Aggregation$$anonfun$applyTasks$1.apply(Aggregation.scala:34)
at sbt.Aggregation$$anonfun$applyTasks$1.apply(Aggregation.scala:33)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
at sbt.Command$.process(Command.scala:95)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:87)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:87)
at sbt.State$$anon$1.process(State.scala:176)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:87)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:87)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.MainLoop$.next(MainLoop.scala:87)
at sbt.MainLoop$.run(MainLoop.scala:80)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:69)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33)
at sbt.MainLoop$.runLogged(MainLoop.scala:25)
at sbt.xMain.run(Main.scala:26)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:77)
at xsbt.boot.Launch$.run(Launch.scala:57)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.launch(Launch.scala:65)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:32)
at xsbt.boot.Boot$.main(Boot.scala:21)
at xsbt.boot.Boot.main(Boot.scala)

Compilation stops, all 8 cores are blazing away at 95% + and then it falls over.
My code has a lot of shapeless hlists in it.
Removing a couple of files and it is ok.
2.10.2 , sbt 13.

Tim

Juha Heljoranta

unread,
Sep 30, 2013, 3:28:49 PM9/30/13
to scala...@googlegroups.com, Tim P
Since it is running out of memory, does it help if you add some more?
Like:
export SBT_OPTS="-Xmx1500M"

Cheers,
Juha

Tim Pigden

unread,
Sep 30, 2013, 4:13:47 PM9/30/13
to Juha Heljoranta, scala-user
ok, yes, started experimenting - went with sbt -mem 2000 in the end. I didn't recognise it as a simple "you've run out of memory" at first.
--
Tim Pigden
Optrak Distribution Software Limited
+44 (0)1992 517100
http://www.linkedin.com/in/timpigden
http://optrak.com
Optrak Distribution Software Ltd is a limited company registered in England and Wales.
Company Registration No. 2327613 Registered Offices: Suite 6, Hoe Lane, Ware, SG12 9LR England 
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Optrak Distribution Software Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.

Tim Pigden

unread,
Oct 1, 2013, 3:09:45 AM10/1/13
to Juha Heljoranta, scala-user
sorry - anyone know how to feed this into intellij compilation process? I tried setting compiler process heap size to 2000 there but it doesn't fix it nor putting -Xmx2000M in the additional compiler vm options. 

Tim Pigden

unread,
Oct 1, 2013, 8:01:46 AM10/1/13
to Juha Heljoranta, scala-user
Answer from Alexander @ jetbrains in case anyone else has the need

http://devnet.jetbrains.com/message/5500122#5500122
Reply all
Reply to author
Forward
0 new messages