Error During Sbt Execution Java.lang.outofmemoryerror
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to prevent java.lang.OutOfMemoryError: PermGen space? [duplicate] up vote 33 down vote favorite 6 This question already has an answer here: How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation? 7 answers I am frequently getting an OutOfMemoryError from SBT. > test [error] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space [error] Use 'last' for the full log. > last [debug] Running task... Cancelable: false, check cycles: false [debug] [debug] Initial source changes: [debug] removed:Set() [debug] added: Set() [debug] modified: Set() [debug] Removed products: Set() [debug] Modified external sources: Set() [debug] Modified binary dependencies: Set() [debug] Initial directly invalidated sources: Set() [debug] [debug] Sources indirectly invalidated by: [debug] product: Set() [debug] binary dep: Set() [debug] external source: Set() [debug] Initially invalidated: Set() [debug] Copy resource mappings: [debug] [debug] [debug] Initial source changes: [debug] removed:Set() [debug] added: Set() [debug] modified: Set() [debug] Removed products: Set() [debug] Modified external sources: Set() [debug] Modified binary dependencies: Set() [debug] Initial directly invalidated sources: Set() [debug] [debug] Sources indirectly invalidated by: [debug] product: Set() [debug] binary dep: Set() [debug] external source: Set() [debug] Initially invalidated: Set() [debug] Copy resource mappings: [debug] [debug] Framework implementation 'org.scalacheck.ScalaCheckFramework' not present. [debug] Framework implementation 'org.specs.runner.SpecsFramework' not present. [debug] Framework implementation 'org.scalatest.tools.ScalaTestFramework' not present. [debug] Framework implem
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only http://stackoverflow.com/questions/15957183/how-to-prevent-java-lang-outofmemoryerror-permgen-space takes a minute: Sign up How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation? up vote 71 down vote favorite 23 I have noticed a strange behavior of my scala compiler. It occasionally throws an OutOfMemoryError when compiling a class. Here's the error message: [info] Compiling 1 Scala source to /Users/gruetter/Workspaces/scala/helloscala/target/scala-2.9.0/test-classes... java.lang.OutOfMemoryError: PermGen space Error during sbt execution: java.lang.OutOfMemoryError: PermGen space http://stackoverflow.com/questions/8331135/how-to-prevent-java-lang-outofmemoryerror-permgen-space-at-scala-compilation It only happens once in a while and the error is usually not thrown on the subsequent compile run. I use Scala 2.9.0 and compile via SBT. Does anybody have a clue as to what might be the cause for this error? Thanks in advance for your insights. scala sbt share|improve this question edited Oct 11 '14 at 12:40 Jacek Laskowski 16.7k454123 asked Nov 30 '11 at 18:41 BumbleGee 79821015 add a comment| 7 Answers 7 active oldest votes up vote 44 down vote accepted The cause for OutOfMemoryError: PermGen space is that it doesn't have enough permanent generation space :) If you are using Oracle JVM, you need to add the -XX:MaxPermSize=256M (or some other amount of space) argument to your sbt script. For other JVMs, look at their documentation. share|improve this answer answered Nov 30 '11 at 20:36 Alexey Romanov 70.5k14161287 1 Thanks Alexey. I've already used the -Xmx512M option. I think that should have the same effect, right? I've added the -XX:MaxPermSize parameter nonetheless and see if the error persists. –BumbleGee Nov 30 '11 at 21:17
Sign in Pricing Blog Support Search GitHub This repository Watch 759 Star 8,474 Fork 2,921 playframework/playframework Code Issues 232 Pull requests error during 37 Projects 0 Pulse Graphs New issue java.lang.OutOfMemoryError: Metaspace - play 2.4.3 #5180 Closed hepin1989 opened this Issue Oct 15, 2015 · 10 comments Projects None yet Labels error during sbt None yet Milestone No milestone Assignees No one assigned 5 participants hepin1989 commented Oct 15, 2015 after several run & Ctrl + D java.lang.OutOfMemoryError: Metaspace at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at scala.runtime.AbstractFunction2.
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen