{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/4617","labels_url":"https://api.github.com/repos/playframework/playframework/issues/4617/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/4617/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/4617/events","html_url":"https://github.com/playframework/playframework/issues/4617","id":85914308,"number":4617,"title":"OutOfMemoryError: Metaspace","user":{"login":"eximius313","id":5578017,"avatar_url":"https://avatars.githubusercontent.com/u/5578017?v=3","gravatar_id":"","url":"https://api.github.com/users/eximius313","html_url":"https://github.com/eximius313","followers_url":"https://api.github.com/users/eximius313/followers","following_url":"https://api.github.com/users/eximius313/following{/other_user}","gists_url":"https://api.github.com/users/eximius313/gists{/gist_id}","starred_url":"https://api.github.com/users/eximius313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eximius313/subscriptions","organizations_url":"https://api.github.com/users/eximius313/orgs","repos_url":"https://api.github.com/users/eximius313/repos","events_url":"https://api.github.com/users/eximius313/events{/privacy}","received_events_url":"https://api.github.com/users/eximius313/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-07T16:11:27Z","updated_at":"2015-06-08T23:27:35Z","closed_at":null,"body":"It happens quite often during compilation (Play 2.4.0)\r\n\r\n```\r\n[info] Compiling 51 Scala sources and 46 Java sources to D:\\workspaces\\XXX\\target\\scala-2.11\\classes...\r\njava.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Metaspace\r\n        at java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\n        at java.util.concurrent.FutureTask.get(FutureTask.java:192)\r\n        at sbt.ConcurrentRestrictions$$anon$4.take(ConcurrentRestrictions.scala:188)\r\n        at sbt.Execute.next$1(Execute.scala:83)\r\n        at sbt.Execute.processAll(Execute.scala:86)\r\n        at sbt.Execute.runKeep(Execute.scala:66)\r\n        at sbt.EvaluateTask$.liftedTree1$1(EvaluateTask.scala:342)\r\n        at sbt.EvaluateTask$.run$1(EvaluateTask.scala:341)\r\n        at sbt.EvaluateTask$.runTask(EvaluateTask.scala:361)\r\n        at sbt.Aggregation$$anonfun$3.apply(Aggregation.scala:64)\r\n        at sbt.Aggregation$$anonfun$3.apply(Aggregation.scala:62)\r\n        at sbt.EvaluateTask$.withStreams(EvaluateTask.scala:293)\r\n        at sbt.Aggregation$.timedRun(Aggregation.scala:62)\r\n        at sbt.Aggregation$.runTasks(Aggregation.scala:71)\r\n        at sbt.Aggregation$$anonfun$applyTasks$1.apply(Aggregation.scala:32)\r\n        at sbt.Aggregation$$anonfun$applyTasks$1.apply(Aggregation.scala:31)\r\n        at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)\r\n        at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)\r\n        at sbt.Aggregation$$anonfun$evaluatingParser$4$$anonfun$apply$5.apply(Aggregation.scala:153)\r\n        at sbt.Aggregation$$anonfun$evaluatingParser$4$$anonfun$apply$5.apply(Aggregation.scala:152)\r\n        at sbt.Act$$anonfun$sbt$Act$$actParser0$1$$anonfun$sbt$Act$$anonfun$$evaluate$1$1$$anonfun$apply$10.apply(Act.scala:244)\r\n        at sbt.Act$$anonfun$sbt$Act$$actParser0$1$$anonfun$sbt$Act$$anonfun$$evaluate$1$1$$anonfun$apply$10.apply(Act.scala:241)\r\n        at sbt.Command$.process(Command.scala:92)\r\n        at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)\r\n        at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)\r\n        at sbt.State$$anon$1.process(State.scala:184)\r\n        at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)\r\n        at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)\r\n        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)\r\n        at sbt.MainLoop$.next(MainLoop.scala:98)\r\n        at sbt.MainLoop$.run(MainLoop.scala:91)\r\n        at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)\r\n        at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)\r\n        at sbt.Using.apply(Using.scala:24)\r\n        at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)\r\n        at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)\r\n        at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)\r\n        at sbt.MainLoop$.runLogged(MainLoop.scala:24)\r\n        at sbt.StandardMain$.runManaged(Main.scala:53)\r\n        at sbt.xMain.run(Main.scala:28)\r\n        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)\r\n        at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)\r\n        at xsbt.boot.Launch$.run(Launch.scala:109)\r\n        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)\r\n        at xsbt.boot.Launch$.launch(Launch.scala:117)\r\n        at xsbt.boot.Launch$.apply(Launch.scala:18)\r\n        at xsbt.boot.Boot$.runImpl(Boot.scala:41)\r\n        at xsbt.boot.Boot$.main(Boot.scala:17)\r\n        at xsbt.boot.Boot.main(Boot.scala)\r\nCaused by: java.lang.OutOfMemoryError: Metaspace\r\n        at java.lang.ClassLoader.defineClass1(Native Method)\r\n        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)\r\n        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n        at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)\r\n        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)\r\n        at java.net.URLClassLoader$1.run(URLClassLoader.java:367)\r\n        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n        at java.security.AccessController.doPrivileged(Native Method)\r\n        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n        at xsbt.CompilerInterface.newCompiler(CompilerInterface.scala:23)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:483)\r\n        at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)\r\n        at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:56)\r\n        at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:51)\r\n        at sbt.compiler.CompilerCache$$anon$2.apply(CompilerCache.scala:47)\r\n        at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:39)\r\n        at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:51)\r\n        at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:51)\r\n        at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:51)\r\n        at sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:75)\r\n        at sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:50)\r\n        at sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:65)\r\n        at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)\r\n        at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)\r\n        at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)\r\n        at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)\r\n        at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)\r\n[error] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Metaspace\r\n[error] Use 'last' for the full log.\r\n```"},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/110170960","html_url":"https://github.com/playframework/playframework/issues/4617#issuecomment-110170960","issue_url":"https://api.github.com/repos/playframework/playframework/issues/4617","id":110170960,"user":{"login":"benmccann","id":322311,"avatar_url":"https://avatars.githubusercontent.com/u/322311?v=3","gravatar_id":"","url":"https://api.github.com/users/benmccann","html_url":"https://github.com/benmccann","followers_url":"https://api.github.com/users/benmccann/followers","following_url":"https://api.github.com/users/benmccann/following{/other_user}","gists_url":"https://api.github.com/users/benmccann/gists{/gist_id}","starred_url":"https://api.github.com/users/benmccann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmccann/subscriptions","organizations_url":"https://api.github.com/users/benmccann/orgs","repos_url":"https://api.github.com/users/benmccann/repos","events_url":"https://api.github.com/users/benmccann/events{/privacy}","received_events_url":"https://api.github.com/users/benmccann/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T23:27:35Z","updated_at":"2015-06-08T23:27:35Z","body":"Yeah, I think it's fine to close this. Probably better discussed on the mailing list since it's a problem in @eximius313's app and not with Play. Though we need to add a documentation page to help users debug these types of problems, which is what the other bug I linked to is for\r\n\r\n(There is some chance there's a bug in Play here as there have been in the past. However, I think those problems are all fixed and we should assume the bug isn't in Play unless someone follows the directions in https://github.com/playframework/playframework/issues/4469 and then posts that output showing that the problem is in Play)"}}