java.lang.OutOfMemoryError: GC overhead limit exceeded

Stack Overflow | Ame | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Apache Activemq 5.10.2 possible memory leak?

    Stack Overflow | 9 months ago | Ame
    java.lang.OutOfMemoryError: GC overhead limit exceeded
  2. 0

    java.lang.OutOfMemoryError: allocLargeObjectOrArray error for large payload

    Oracle Community | 4 years ago | 840124
    java.lang.OutOfMemoryError: allocLargeObjectOrArray: [B, size 667664
  3. 0

    db:: 3.10::java.lang.OutOfMemoryError: allocLargeObjectOrArray error for large payload a9

    hivmr.com | 9 months ago
    java.lang.OutOfMemoryError: allocLargeObjectOrArray: [B, size 667664
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, I am having some difficulty with the Onyx application (versions, 1.8-SNAPSHOT and 1.8.4) Questionnaires are taking a long time to load and when I click on some questionnaire then I get following exceptions, 2012-07-23 13:53:39,998 - ERROR - apache.wicket.Session - Exception when detaching/serializing page java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethod(Class.java:1935) at java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:134 9) at java.io.ObjectStreamClass.access$2200(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:448) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:150 9) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:13 92) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:150 9) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:13 92) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:150 9) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:13 92) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:150 9) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:13 92) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146) I have already set PermGen space as part of the JAVA_OPTS. But still I keep getting the above exception, even though there is enough memory. This problem wasn't there a few days ago. Thanks, Abhishek

    JIRA | 5 years ago | abhishek d
    java.lang.OutOfMemoryError: PermGen space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      GC overhead limit exceeded

      at sun.reflect.UTF8.encode()
    2. Java RT
      ObjectOutputStream.writeObject0
      1. sun.reflect.UTF8.encode(UTF8.java:36)
      2. sun.reflect.ClassFileAssembler.emitConstantPoolUTF8(ClassFileAssembler.java:103)
      3. sun.reflect.AccessorGenerator.emitBoxingContantPoolEntries(AccessorGenerator.java:299)
      4. sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:353)
      5. sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
      6. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
      7. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      8. java.lang.reflect.Method.invoke(Method.java:498)
      9. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
      10. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
      11. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      12. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      13. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      14. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      15. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      16. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      17. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
      18. java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333)
      19. java.util.HashMap.writeObject(HashMap.java:1354)
      20. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      21. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      22. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      23. java.lang.reflect.Method.invoke(Method.java:498)
      24. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
      25. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
      26. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      27. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      28. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      29. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      30. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      31. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      31 frames