Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311179

Generational ZGC: gc/z/TestSmallHeap.java failed with OutOfMemoryError

    XMLWordPrintable

Details

    • gc
    • 21
    • b10

    Backports

      Description

        The following test failed in the JDK22 CI:

        gc/z/TestSmallHeap.java

        Here's a snippet from the log file:

        [1.421s][info][gc,heap ] GC(92) y: Heap Statistics:
        [1.421s][info][gc,heap ] GC(92) y: Mark Start Mark End Relocate Start Relocate End High Low
        [1.421s][info][gc,heap ] GC(92) y: Capacity: 8M (100%) 8M (100%) 8M (100%) 8M (100%) 8M (100%) 8M (100%)
        [1.421s][info][gc,heap ] GC(92) y: Free: 0M (0%) 0M (0%) 0M (0%) 0M (0%) 0M (0%) 0M (0%)
        [1.421s][info][gc,heap ] GC(92) y: Used: 8M (100%) 8M (100%) 8M (100%) 8M (100%) 8M (100%) 8M (100%)
        [1.421s][info][gc,heap ] GC(92) y: Young Generation Statistics:
        [1.421s][info][gc,heap ] GC(92) y: Mark Start Mark End Relocate Start Relocate End
        [1.421s][info][gc,heap ] GC(92) y: Used: 2M (25%) 2M (25%) 2M (25%) 2M (25%)
        [1.421s][info][gc,heap ] GC(92) y: Live: - 0M (0%) 0M (0%) 0M (0%)
        [1.421s][info][gc,heap ] GC(92) y: Garbage: - 1M (25%) 1M (25%) 1M (25%)
        [1.421s][info][gc,heap ] GC(92) y: Allocated: - 0M (0%) 0M (0%) 0M (0%)
        [1.421s][info][gc,heap ] GC(92) y: Reclaimed: - - 0M (0%) 0M (0%)
        [1.421s][info][gc,heap ] GC(92) y: Promoted: - - 0M (0%) 0M (0%)
        [1.421s][info][gc,heap ] GC(92) y: Compacted: - - - 0M (0%)
        [1.421s][info][gc ] GC(92) Minor Collection (High Usage) 8M(100%)->8M(100%) 0.010s
        [1.438s][info][gc ] GC(93) Minor Collection (High Usage)
        [1.447s][info][gc ] GC(93) y: Relocation Stall (VM Thread) 8.939ms
        [1.447s][info][gc ] GC(93) y: Relocation Stall (VM Thread) 0.102ms
        [1.447s][info][gc ] Allocation Stall (old-m-a-i-n) 68.503ms
        [1.451s][info][gc ] GC(93) Minor Collection (High Usage) Aborted
        [1.452s][info][gc ] GC(88) Major Collection (Allocation Stall) Aborted
        ];
         stderr: [Exception in thread "old-m-a-i-n" java.lang.OutOfMemoryError: Java heap space
        at gc.z.TestSmallHeap$Test.main(TestSmallHeap.java:47)
        at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000801003000.invokeStatic(LambdaForm$DMH)
        at java.base/java.lang.invoke.LambdaForm$MH/0x0000000801004400.invoke(LambdaForm$MH)
        at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:154)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at jdk.test.lib.process.ProcessTools.lambda$main$6(ProcessTools.java:901)
        at jdk.test.lib.process.ProcessTools$$Lambda/0x00000008010016c0.run(Unknown Source)
        at java.base/java.lang.Thread.runWith(Thread.java:1583)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:309)
        at java.base/java.lang.VirtualThread$VThreadContinuation$1.run(VirtualThread.java:190)
        at java.base/jdk.internal.vm.Continuation.enter0(Continuation.java:320)
        at java.base/jdk.internal.vm.Continuation.enter(Continuation.java:312)
        at java.base/jdk.internal.vm.Continuation.enterSpecial(Native Method)
        ]
         exitValue = 1

        java.lang.RuntimeException: 'Success' missing from stdout/stderr
        at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
        at gc.z.TestSmallHeap.main(TestSmallHeap.java:64)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:309)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Success' missing from stdout/stderr

        This is the third rendition of this issue. See:

        JDK-8234619 ZGC: gc/z/TestSmallHeap.java failure with Out Of Memory
        JDK-8240714 ZGC: TestSmallHeap.java failed due to OutOfMemoryError

        Attachments

          Issue Links

            Activity

              People

                stefank Stefan Karlsson
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: