java.lang.OutOfMemoryError: GC overhead limit exceeded

Stack Overflow | BigDataLearner | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    how many max parameters junit perameterized test can handle?

    Stack Overflow | 7 months ago | BigDataLearner
    java.lang.OutOfMemoryError: GC overhead limit exceeded

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      GC overhead limit exceeded

      at java.util.Arrays.copyOf()
    2. Java RT
      Method.toString
      1. java.util.Arrays.copyOf(Unknown Source)
      2. java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
      3. java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
      4. java.lang.AbstractStringBuilder.append(Unknown Source)
      5. java.lang.StringBuilder.append(Unknown Source)
      6. java.lang.reflect.Method.specificToStringHeader(Unknown Source)
      7. java.lang.reflect.Executable.sharedToString(Unknown Source)
      8. java.lang.reflect.Method.toString(Unknown Source)
      8 frames
    3. JUnit
      MethodSorter$1.compare
      1. org.junit.internal.MethodSorter$2.compare(MethodSorter.java:33)
      2. org.junit.internal.MethodSorter$2.compare(MethodSorter.java:28)
      3. org.junit.internal.MethodSorter$1.compare(MethodSorter.java:20)
      4. org.junit.internal.MethodSorter$1.compare(MethodSorter.java:14)
      4 frames
    4. Java RT
      Arrays.sort
      1. java.util.TimSort.countRunAndMakeAscending(Unknown Source)
      2. java.util.TimSort.sort(Unknown Source)
      3. java.util.Arrays.sort(Unknown Source)
      3 frames
    5. JUnit
      Parameterized.<init>
      1. org.junit.internal.MethodSorter.getDeclaredMethods(MethodSorter.java:56)
      2. org.junit.runners.model.TestClass.scanAnnotatedMembers(TestClass.java:65)
      3. org.junit.runners.model.TestClass.<init>(TestClass.java:57)
      4. org.junit.runners.ParentRunner.createTestClass(ParentRunner.java:88)
      5. org.junit.runners.ParentRunner.<init>(ParentRunner.java:83)
      6. org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)
      7. org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters.<init>(BlockJUnit4ClassRunnerWithParameters.java:27)
      8. org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory.createRunnerForTestWithParameters(BlockJUnit4ClassRunnerWithParametersFactory.java:16)
      9. org.junit.runners.Parameterized.createRunnersForParameters(Parameterized.java:313)
      10. org.junit.runners.Parameterized.<init>(Parameterized.java:248)
      10 frames
    6. pps.test
      Parallelized.<init>
      1. pps.test.Parallelized.<init>(Parallelized.java:50)
      1 frame
    7. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      4 frames
    8. JUnit
      AnnotatedBuilder.runnerForClass
      1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
      2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
      2 frames