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

LargeCopyWithMark.java failed due to OutOfMemoryError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 17
    • 15, 16, 17
    • hotspot
    • gc
    • x86_64
    • os_x

      The following test failed due to OutOfMemoryError in the JDK15 CI:

      java/io/BufferedInputStream/LargeCopyWithMark.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/163)----------
      command: main LargeCopyWithMark
      reason: User specified action: run main/othervm LargeCopyWithMark
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 2.31
      ----------configuration:(0/0)----------
      ----------System.out:(1/1188)----------
      Command line: [/mesos/work_dir/jib-master/install/jdk-15+11-329/macosx-x64.jdk/jdk-15.jdk/Contents/Home/bin/java -cp /mesos/work_dir/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S550/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e53678c2-4411-422a-8908-8ecb323c6414/runs/d24b5a50-b19d-4d6c-936f-29b1b9d9c89b/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/6/java/io/BufferedInputStream/LargeCopyWithMark.d:/mesos/work_dir/jib-master/install/jdk-15+11-329/src.full/open/test/jdk/java/io/BufferedInputStream:/mesos/work_dir/slaves/90726e33-be99-4e27-9d68-25dad266ef13-S550/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e53678c2-4411-422a-8908-8ecb323c6414/runs/d24b5a50-b19d-4d6c-936f-29b1b9d9c89b/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/6/test/lib:/mesos/work_dir/jib-master/install/jdk-15+11-329/src.full/open/test/lib:/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar:/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b16/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar -Xmx4G -ea:LargeCopyWithMark$Child LargeCopyWithMark$Child ]
      ----------System.err:(18/1185)----------
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:230)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
      at LargeCopyWithMark$Child.main(LargeCopyWithMark.java:75)
      java.lang.AssertionError: Test failed: exit code = 1
      at LargeCopyWithMark.main(LargeCopyWithMark.java:51)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      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.AssertionError: Test failed: exit code = 1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.AssertionError: Test failed: exit code = 1
      ----------rerun:(33/5419)*----------

      The test machine used for this run has 64GB of RAM.
      Starting this as a P3 since this is a Tier2 test.

            iklam Ioi Lam
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: