java.lang.OutOfMemoryError: Compressed class space at java.lang.<span class="code-object" style="color: #910091">ClassLoader</span>.defineClass1(Native Method) at java.lang.<span class="code-object" style="color: #910091">ClassLoader</span>.defineClass(<span class="code-object" style="color: #910091">ClassLoader</span>.java:763)

Google Groups | pauld...@gmail.com (JIRA) | 4 months ago
  1. 0

    [JIRA] (JENKINS-37213) java.lang.OutOfMemoryError: Compressed class space in Job DSL

    Google Groups | 4 months ago | pauld...@gmail.com (JIRA)
    java.lang.OutOfMemoryError: Compressed class space at java.lang.<span class="code-object" style="color: #910091">ClassLoader</span>.defineClass1(Native Method) at java.lang.<span class="code-object" style="color: #910091">ClassLoader</span>.defineClass(<span class="code-object" style="color: #910091">ClassLoader</span>.java:763)
  2. 0

    [scala-user] Scala 2.9.2 Compiler strange behavior - Grokbase

    grokbase.com | 11 months ago
    java.lang.OutOfMemoryError: Java heap space at scala.tools.nsc.symtab.Types$**TypeRef$.apply(Types.scala:**2031) at scala.tools.nsc.symtab.Types$**class.copyTypeRef(Types.scala:**2781) at scala.tools.nsc.symtab.**SymbolTable.copyTypeRef(** SymbolTable.scala:13) at scala.tools.nsc.symtab.Types$**TypeMap.mapOver(Types.scala:**3122) at scala.tools.nsc.symtab.Types$**SubstMap.apply(Types.scala:**3567) at scala.tools.nsc.symtab.Types$**SubstMap.apply(Types.scala:**3532) at scala.tools.nsc.symtab.Types$**TypeMap$$anonfun$mapOverArgs$** 1.apply(Types.scala:3216) at scala.tools.nsc.symtab.Types$**TypeMap$$anonfun$mapOverArgs$** 1.apply(Types.scala:3212) at scala.tools.nsc.symtab.Types$**class.map2Conserve(Types.**scala:4985) at scala.tools.nsc.symtab.**SymbolTable.map2Conserve(** SymbolTable.scala:13) at scala.tools.nsc.symtab.Types$**TypeMap.mapOverArgs(Types.**scala:3212) at scala.tools.nsc.symtab.Types$**TypeMap.mapOver(Types.scala:**3119) at scala.tools.nsc.symtab.Types$**SubstMap.apply(Types.scala:**3567) at scala.tools.nsc.symtab.Types$**SubstMap.apply(Types.scala:**3532) at scala.collection.immutable.**List.loop$1(List.scala:148) at scala.collection.immutable.**List.mapConserve(List.scala:**164) at scala.tools.nsc.symtab.Types$**TypeMap.mapOver(Types.scala:**3168) at scala.tools.nsc.symtab.Types$**SubstMap.apply(Types.scala:**3567) at scala.tools.nsc.symtab.Types$**Type.subst(Types.scala:583) at scala.tools.nsc.symtab.Types$**Type.instantiateTypeParams(** Types.scala:423) at scala.tools.nsc.symtab.Types$**TypeRef.transform(Types.scala:**1731) at scala.tools.nsc.symtab.Types$**TypeRef$$anonfun$baseTypeSeq$** 5.apply(Types.scala:1943) at scala.tools.nsc.symtab.Types$**TypeRef$$anonfun$baseTypeSeq$** 5.apply(Types.scala:1943) at scala.tools.nsc.symtab.**BaseTypeSeqs$BaseTypeSeq.map(** BaseTypeSeqs.scala:113) at scala.tools.nsc.symtab.Types$**TypeRef.baseTypeSeq(Types.**scala:1943) at scala.tools.nsc.symtab.**BaseTypeSeqs$$anonfun$** compoundBaseTypeSeq$1.apply(**BaseTypeSeqs.scala:200) at scala.tools.nsc.symtab.**BaseTypeSeqs$$anonfun$** compoundBaseTypeSeq$1.apply(**BaseTypeSeqs.scala:198) at scala.collection.**LinearSeqOptimized$class.** foreach(LinearSeqOptimized.**scala:59) at scala.collection.immutable.**List.foreach(List.scala:76) at scala.tools.nsc.symtab.**BaseTypeSeqs$class.**compoundBaseTypeSeq(** BaseTypeSeqs.scala:198) at scala.tools.nsc.symtab.**SymbolTable.**compoundBaseTypeSeq(** SymbolTable.scala:13) at scala.tools.nsc.symtab.Types$**CompoundType$$anonfun$** baseTypeSeq$3.apply(Types.**scala:1291) Also I tried to compile this code (using maven). The situation is the same. A lot of time to compile and huge memory consumption (I tried to increase -Xmx with no luck). To measure the REPL interpretation time I saved the code snippet to file and passed it to the REPL like this: $ pwd /home/andrey/Downloads/scala-**2.9.2/bin $ time ./scala ~/Dropbox/test_partials.scala The result is also an error but different this time: java.lang.**NoClassDefFoundError: scala/runtime/** AbstractPartialFunction$mcVL$**sp at java.lang.ClassLoader.**defineClass1(Native Method) at java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631) at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615) at java.security.**SecureClassLoader.defineClass(** SecureClassLoader.java:141) at java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283) at java.net.URLClassLoader.**access$000(URLClassLoader.**java:58) at java.net.URLClassLoader$1.run(**URLClassLoader.java:197) at java.security.**AccessController.doPrivileged(**Native Method) at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) at scala.tools.nsc.util.**ScalaClassLoader$**URLClassLoader.scala$tools$* *nsc$util$ScalaClassLoader$$**super$findClass(** ScalaClassLoader.scala:88) at scala.tools.nsc.util.**ScalaClassLoader$class.** findClass(ScalaClassLoader.**scala:44) at scala.tools.nsc.util.**ScalaClassLoader$**URLClassLoader.findClass(** ScalaClassLoader.scala:88) at java.lang.ClassLoader.**loadClass(ClassLoader.java:**306) at scala.tools.nsc.util.**ScalaClassLoader$**URLClassLoader.scala$tools$* *nsc$util$ScalaClassLoader$$**super$loadClass(** ScalaClassLoader.scala:88) at scala.tools.nsc.util.**ScalaClassLoader$class.** loadClass(ScalaClassLoader.**scala:50) at scala.tools.nsc.util.**ScalaClassLoader$**URLClassLoader.loadClass(** ScalaClassLoader.scala:88) at java.lang.ClassLoader.**loadClass(ClassLoader.java:**247) at Main$$anon$1.<init>(test_**partials.scala:27) at Main$.main(test_partials.**scala:1)
  3. 0

    'Re: Error: org.apache.hadoop.mapreduce.task.reduce.Shuffle$ShuffleError Java Heap Space' - MARC

    marc.info | 1 year ago
    java.lang.OutOfMemoryError: Java heap space > at > org.apache.hadoop.io.BoundedByteArrayOutputStream.<init>(BoundedByteArrayOutputStream.java:58) > at > org.apache.hadoop.io.BoundedByteArrayOutputStream.<init>(BoundedByteArrayOutputStream.java:45) > at > org.apache.hadoop.mapreduce.task.reduce.MapOutput.<init>(MapOutput.java:97) > at > org.apache.hadoop.mapreduce.task.reduce.MergeManager.unconditionalReserve(MergeManager.java:286) > at > org.apache.hadoop.mapreduce.task.reduce.MergeManager.reserve(MergeManager.java:276) > at > org.apache.hadoop.mapreduce.task.reduce.Fetcher.copyMapOutput(Fetcher.java:384) > at > org.apache.hadoop.mapreduce.task.reduce.Fetcher.copyFromHost(Fetcher.java:319) > at > org.apache.hadoop.mapreduce.task.reduce.Fetcher.run(Fetcher.java:179) > > 16:20:33 INFO [main] Job - map 100% reduce 65% > 16:20:36 INFO [main] Job - map 100% reduce 67% > 16:20:39 INFO [main] Job - map 100% reduce 69% > 16:20:41 INFO [main] Job - map 100% reduce 70% > 16:20:43 INFO [main] Job - map 100% reduce 71% > > I have no clue what the issue could be for this. I googled this issue and > checked several sources of possible solutions but nothing does fit. > > I saw this jira entry which could fit: > . > > Here somebody recommends to increase the value for the property dfs.datanode.max.xcievers > / dfs.datanode.max.receiver.threads to 4096, but this is the value for > our cluster. > > > > The issue with the to small input files doesn't fit I think, because the > map phase reads 137 files with each 130MB. Block Size is 128MB. > > The cluster uses version 2.0.0-cdh4.1.1, > 581959ba23e4af85afd8db98b7687662fe9c5f20. > > Thx > > > > > > > -- Nitin Pawar can you try increasing memory per reducer  ? <div class="gmail_extra"><br><br><div \ class="gmail_quote">On Wed, Oct 31, 2012 at 9:15 PM, Eduard Skaley <span dir="ltr">&lt;<a \ href="mailto:e.v.skaley@gmail.com" target="_blank">e.v.skaley@gmail.com</a>&gt;</span> \ wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \ solid;padding-left:1ex"> <div text="#000000" bgcolor="#FFFFFF"> Hello,<br> <br> I&#39;m getting this Error through job execution:<br> <br> 16:20:26 INFO  [main]                     Job -  map 100% reduce 46%<br> 16:20:27 INFO  [main]                     Job -  map 100% reduce 51%<br> 16:20:29 INFO  [main]                     Job -  map 100% reduce 62%<br> 16:20:30 INFO  [main]                     Job -  map 100% reduce 64%<br> 16:20:32 INFO  [main]                     Job - Task Id : attempt_1351680008718_0018_r_000006_0, Status : FAILED<br> Error: org.apache.hadoop.mapreduce.task.reduce.Shuffle$ShuffleError: error in shuffle in fetcher#2 at org.apache.hadoop.mapreduce.task.reduce.Shuffle.run(Shuffle.java:123)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {code} # using OpenJDK Java 8 # and Jenkins 2.7.1 /usr/bin/java -Xms1024m -Xmx3072m -Dorg.apache.commons.jelly.tags.fmt.timeZone=US/Mountain -jar /usr/share/jenkins/jenkins.war --webroot=/var/run/jenkins/war --httpListenAddress=127.0.0.1 --httpPort=8080 --ajp13Port=-1 {code} After a long time, I encountered the error {code} FATAL: Compressed class space java.lang.OutOfMemoryError: Compressed class space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define(ClassLoaderForClassArtifacts.java:44) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:77) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.defineClassAndGetConstructor(ClassLoaderForClassArtifacts.java:75) at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePogoMethod(CallSiteGenerator.java:222) at org.codehaus.groovy.reflection.CachedMethod.createPogoMetaMethodSite(CachedMethod.java:233) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createCachedMethodSite(PogoMetaMethodSite.java:150) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createPogoMetaMethodSite(PogoMetaMethodSite.java:126) at groovy.lang.MetaClassImpl.createPogoCallSite(MetaClassImpl.java:3405) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPogoSite(CallSiteArray.java:150) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:164) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133) at javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.archiveJunit(PublisherContext.groovy:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:169) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174) at javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.archiveJunit(PublisherContext.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) {code}

    Jenkins JIRA | 4 months ago | Paul Draper
    java.lang.OutOfMemoryError: Compressed class space
  6. 0

    OOM CompressedClassSpace issue

    Oracle Community | 2 years ago | 543b8d1a-fe42-46f1-b91f-1f704518f375
    java.lang.OutOfMemoryError: Compressed class space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Compressed class space at java.lang.<span class="code-object" style="color: #910091">ClassLoader</span>.defineClass1(Native Method) at java.lang.<span class="code-object" style="color: #910091">ClassLoader</span>.defineClass(<span class="code-object" style="color: #910091">ClassLoader</span>.java:763)

      at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define()
    2. Groovy
      ClassLoaderForClassArtifacts$1.run
      1. org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define(ClassLoaderForClassArtifacts.java:44)
      2. org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:77)
      3. org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:75)
      3 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.defineClassAndGetConstructor(ClassLoaderForClassArtifacts.java:75)
      2. org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePogoMethod(CallSiteGenerator.java:222)
      3. org.codehaus.groovy.reflection.CachedMethod.createPogoMetaMethodSite(CachedMethod.java:233)
      4. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createCachedMethodSite(PogoMetaMethodSite.java:150)
      5. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createPogoMetaMethodSite(PogoMetaMethodSite.java:126)
      6. groovy.lang.MetaClassImpl.createPogoCallSite(MetaClassImpl.java:3405)
      7. org.codehaus.groovy.runtime.callsite.CallSiteArray.createPogoSite(CallSiteArray.java:150)
      8. org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:164)
      9. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      10. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      11. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      11 frames
    5. javaposse.jobdsl.dsl
      PublisherContext.archiveJunit
      1. javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.archiveJunit(PublisherContext.groovy:192)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. Groovy
      AbstractCallSite.callCurrent
      1. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:169)
      2. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
      3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
      5 frames
    8. javaposse.jobdsl.dsl
      PublisherContext.archiveJunit
      1. javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.archiveJunit(PublisherContext.groovy)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames