Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Play Framework 2.3: OutOfMemoryError: GC overhead limit exceeded #50

Closed
lmayumi opened this issue Sep 23, 2014 · 3 comments

Comments

@lmayumi
Copy link

lmayumi commented Sep 23, 2014

After the instrumentation, I am getting GC exception. I have both "-Xms2048M" and "-Xmx2048M" allocate 2GB of memory which I think is enough. Do anyone have any idea how to get around this?

[scoverage]: Instrumentation completed [50838 statements]
[scoverage]: Written instrumentation file [/Users/mayumi.liyanage/wm_browse/target/scala-2.10/scoverage-data/scoverage.coverage.xml]
[scoverage]: Writing measurements data to [/Users/mayumi.liyanage/wm_browse/target/scala-2.10/scoverage-data]
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at sbt.ConcurrentRestrictions$$anon$4.take(ConcurrentRestrictions.scala:196)
.........

Thanks

@lmayumi
Copy link
Author

lmayumi commented Sep 24, 2014

Ls there a way to override the memory allocation so I can give the process running this plugin more memory?

@sksamuel
Copy link
Member

You should just be able to increase the memory in your tests as normal. Try 3gb and see if that works.

@massenz
Copy link

massenz commented Nov 28, 2014

FWIW - I've been using sbt-scoverage without any problem at all with a Play Framework-based project.
Never had any memory issues: as @sksamuel pointed out, you should set your JVM to run with more memory (but I'm using JDK 8 with the default settings and it works just fine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants