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

Logger/bundleLeak/BundleTest.java fails due to "OutOfMemoryError: Java heap space"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 15
    • 15
    • core-libs
    • b26
    • x86_64
    • generic
    • Verified

      The following test is failing the JDK15 CI:

      java/util/logging/Logger/bundleLeak/BundleTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/329)----------
      command: main -Xmx64M -Djava.util.logging.config.file=logging.properties BundleTest
      reason: User specified action: run main/othervm -Xmx64M -Djava.util.logging.config.file=logging.properties BundleTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.logging
      elapsed time (seconds): 4.462
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.logging

      ----------System.out:(30/780)----------
      Waiting for URL loader to be GC'ed
      Total memory added: 1 Mb
      Total memory added: 2 Mb
      Total memory added: 3 Mb
      Total memory added: 4 Mb
      Total memory added: 5 Mb
      Total memory added: 6 Mb
      Total memory added: 7 Mb
      Total memory added: 8 Mb
      Total memory added: 9 Mb
      Total memory added: 10 Mb
      Total memory added: 11 Mb
      Total memory added: 12 Mb
      Total memory added: 13 Mb
      Total memory added: 14 Mb
      Total memory added: 15 Mb
      Total memory added: 16 Mb
      Total memory added: 17 Mb
      Total memory added: 18 Mb
      Total memory added: 19 Mb
      Total memory added: 20 Mb
      Total memory added: 21 Mb
      Total memory added: 22 Mb
      Total memory added: 23 Mb
      Total memory added: 24 Mb
      Total memory added: 25 Mb
      Total memory added: 26 Mb
      Total memory added: 27 Mb
      Total memory added: 28 Mb
      Total memory added: 29 Mb
      ----------System.err:(17/902)----------
      May 26, 2020 3:20:21 PM BundleTest main
      FINE: foo-151831367
      May 26, 2020 3:20:21 PM BundleTest main
      FINE: foo-151831367
      java.lang.OutOfMemoryError: Java heap space
      at BundleTest.main(BundleTest.java:132)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.OutOfMemoryError: Java heap space
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Java heap space
      ----------rerun:(39/4944)*----------

      So far this failure mode has shown up in three recent JDK15 CI jobs.

            dfuchs Daniel Fuchs
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: