out of heap while building the workspace for most akka projects - fixed with increased heap

978 views
Skip to first unread message

Rob Withers

unread,
Aug 3, 2013, 10:20:25 PM8/3/13
to akka list, scala-internals list
I found a possible bug, or a test for optimization, at least, and I looked for a prior report and did not find one, on eclipse, scala and akka lists/forums/bugzillas.  It is perhaps related to Eclipse bug: 376891?  https://bugs.eclipse.org/bugs/show_bug.cgi?id=376891

1) I am using Eclipse Juno 4.2.2, with some variations, perhaps:
  • Eclipse Java Development Tools
  • Version: 3.8.2.v20130116-090414-8-8nFu3FNOfwKLRuqgXKIy9z0I83
  • Build id: M20130204-1200
  • Eclipse Platform
  • Version: 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7
  • Build id: M20130204-1200
  • Eclipse RCP
  • Version: 4.2.2.v20130129-152330-7IARAABrMQkGSvMgQnUlz-DQz00h
  • Build id: M20130204-1200
  • Eclipse Plug-in Development Environment
  • Version: 3.8.2.v20130116-091538-7c7wFj0FFt6Zr9bd4AM1JEQMS
  • Build id: M20130204-1200
2) I have scala 2.10.2 loaded:
  • Play 2 Support for Scala IDE
    • Version: 0.3.0.v-2_10-201307101649-e442f75
  • Scala Editor
    • Version: 0.3.0.v-2_10-201307101649-e442f75
3) Using eclipse's git repository explorer, I load akka's repo and pull release-2.2.
4) I fix up sbt properly (sbteclipse, php, versions, …) and run in akka> sbt "++2.10.2 update"
5) I run akka> sbt "++2.10.2 eclipse"
6) I open eclipse and add kafka and some other projects, some a little sizable
7) I add most akka projects, as eclipse projects, minus the osgi stuff and contrib
  •         project list
  • /akka-actor
  • /akka-actor-tests
  • /akka-agent
  • /akka-channels-experimental
  • /akka-channels-tests
  • /akka-cluster
  • /akka-file-mailbox
  • /akka-kernel
  • /akka-mailboxes-common
  • /akka-multi-node-testkit
  • /akka-remote
  • /akka-remote-tests
  • /akka-sample-cluster
  • /akka-sample-fsm
  • /akka-sample-hello
  • /akka-sample-hello-kernel
  • /akka-sample-multi-node
  • /akka-sample-remote
  • /akka-sbt-plugin
  • /akka-slf4j
  • /akka-testkit
  • /akka-transactor
  • /akka-zeromq
  • /atmos
  • /groovy
  • /GroovyMetaprogramming
  • /kafka
  • /kafka-java-examples
  • /kafka-perf
  • /murmur
  • /reefedjib-drawl
  • /scalakoansexercises
  • /sentinals
8) eclipse hangs and I kill it, several times
9) I start eclipse again, get the Progress view rocking', 
10) I cancel the building workspace task of akka-actor, the first task, at 8%, with several DSG or some such blocking on it, which I cancel as well
11) it is totally jammed, at this point
12) eventually, an error box pops, Unhandled event loop execution: GC overhead limit exceeded.  The blocking continues
13) a few more jammed errors, eventually going live, with 6 errors, listed here, bottom to top:
  1. Unhandled event loop execution: GC overhead limit exceeded
  2. Unhandled event loop execution: GC overhead limit exceeded
  3. An internal error occurred during: "Searching for markers".  GC overhead limit exceeded
  4. An internal error occurred during: "Project Indexing Job: akka-actor".  Java heap space
  5. An internal error occurred during: "Java indexing... 3334 files to index (/akka-testkit)".  Java heap space
  6. Error in Scala compiler:  GC overhead limit exceeded
14) after clicking OK on the error box, I get another popup:
Internal Error
An out of memory error has occurred.  Consult the "Running Eclipse" section of the read me file for information on preventing this ind of error in the future.
You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without warning.
See the .log for more details
15) I dumped the log and am attaching it

scala-akka-eclipse-out-of-memory-error.log

Simon Ochsenreither

unread,
Aug 5, 2013, 8:02:28 AM8/5/13
to scala-i...@googlegroups.com, akka list
Did you adjust the eclipse.ini file as mentioned on the Scala IDE homepage?

Withers, Robert

unread,
Aug 5, 2013, 8:12:55 AM8/5/13
to scala-i...@googlegroups.com, akka list
Yes, step 16 in my description of what I did. It is just an easy way to expose the problem, in case it can be improved upon.

I have since changed the values to 4 GB of PermSpace and 12 GB of Heap, and it is working great.

thanks,
rob

________________________________________
From: scala-i...@googlegroups.com [scala-i...@googlegroups.com] On Behalf Of Simon Ochsenreither [simon.och...@gmail.com]
Sent: Monday, August 05, 2013 6:02 AM
To: scala-i...@googlegroups.com
Cc: akka list
Subject: [scala-internals] Re: out of heap while building the workspace for most akka projects - fixed with increased heap

Did you adjust the eclipse.ini file as mentioned on the Scala IDE homepage?

--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-interna...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Rob Withers

unread,
Aug 5, 2013, 9:18:16 AM8/5/13
to scala-i...@googlegroups.com
I apologize for not reading your note more carefully, Simon.  I followed the Running Eclipse changes for Mac OSX, but not the suggested changes from the Scala IDE page.  Thanks for pointing it out.  I am running well with all the changes recommended.

thanks,
rob


On Aug 5, 2013, at 6:02 AM, Simon Ochsenreither <simon.och...@gmail.com> wrote:

Did you adjust the eclipse.ini file as mentioned on the Scala IDE homepage?

Reply all
Reply to author
Forward
0 new messages