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

com/sun/jdi/ThreadMemoryLeakTest.java fails with "OutOfMemoryError: Java heap space" with ZGC

XMLWordPrintable

    • b17
    • x86_64, aarch64
    • linux, windows

      The following test failed in the JDK21 CI:

      com/sun/jdi/ThreadMemoryLeakTest.java

      This a new test in this build-ID that was added by the following fix:

      JDK-8297638 Memory leak in case of many started-dead threads

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/317)----------
      command: main -Xmx6m ThreadMemoryLeakTest
      reason: User specified action: run main/othervm -Xmx6m ThreadMemoryLeakTest
      started: Sat Mar 18 03:46:05 UTC 2023
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jdi
      finished: Sat Mar 18 03:46:07 UTC 2023
      elapsed time (seconds): 2.711
      ----------configuration:(3/35)----------
      Boot Layer
        add modules: jdk.jdi

      ----------System.out:(9/825)----------
      vmOpts: '-Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/19/36/bundles/linux-aarch64/jdk-19_linux-aarch64_bin.tar.gz/jdk-19 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/91e16c40-06d4-468a-9fc3-7198a5bb7d5a-S123128/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ca80614b-8e6a-4608-84c3-1f6af5e4ea14/runs/57741278-67c2-4d43-9a1d-25e76ff016e5/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa'
      javaOpts: '-XX:+CreateCoredumpOnCrash -XX:+UseZGC'
      JVM version:21-ea
      JDI version: 21.0
      JVM description: Java Debug Interface (Reference Implementation) version 21.0
      Java Debug Wire Protocol (Reference Implementation) version 21.0
      JVM Debug Interface version 21.0
      JVM version 21-ea (Java HotSpot(TM) 64-Bit Server VM, mixed mode, sharing)
      Howdy!
      ----------System.err:(16/1003)----------
      [2ms] run args: [ThreadMemoryLeakTarg]
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.util.LinkedList.listIterator(LinkedList.java:872)
      at java.base/java.util.AbstractList.listIterator(AbstractList.java:313)
      at java.base/java.util.Collections$SynchronizedList.listIterator(Collections.java:2539)
      at TestScaffold$EventHandler.run(TestScaffold.java:258)
      at java.base/java.lang.Thread.runWith(Thread.java:1636)
      at java.base/java.lang.Thread.run(Thread.java:1623)
      java.lang.OutOfMemoryError: Java heap space
      at java.base/java.io.BufferedReader.implReadLine(BufferedReader.java:404)
      at java.base/java.io.BufferedReader.readLine(BufferedReader.java:348)
      at java.base/java.io.BufferedReader.readLine(BufferedReader.java:437)
      at VMConnection.dumpStream(VMConnection.java:254)
      at VMConnection$1.run(VMConnection.java:287)
      STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Java heap space
      STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Java heap space
      ----------rerun:(42/6007)*----------

            cjplummer Chris Plummer
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: