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

Test java/net/httpclient/http2/HpackDriver.java fails with OOM

XMLWordPrintable

    • generic
    • generic

      Test java/net/httpclient/http2/HpackDriver.java fails with the following error message:

      test sun.net.httpclient.hpack.HeaderTableTest.fifo(): failure
      java.lang.OutOfMemoryError: Java heap space
      at sun.net.httpclient.hpack.HeaderTable$CircularBuffer.resize(java.httpclient@9-ea/HeaderTable.java:496)
      at sun.net.httpclient.hpack.HeaderTable$Table.setCapacity(java.httpclient@9-ea/HeaderTable.java:433)
      at sun.net.httpclient.hpack.HeaderTable.setMaxSize(java.httpclient@9-ea/HeaderTable.java:232)
      at sun.net.httpclient.hpack.HeaderTable.<init>(java.httpclient@9-ea/HeaderTable.java:127)
      at sun.net.httpclient.hpack.HeaderTableTest.fifo(java.httpclient@9-ea/HeaderTableTest.java:270)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:220)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:184)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)

      Tested JDK: 9 b120, 9 b124
      Testsuite: Regression JDK
      Affected platforms: 32-bit platforms
      Is it regression: No, I found that the test failed on win32 on 9 b0.
      Steps to reproduce: run the test with jtreg.

      The test passed ok when I increased initial heap size by adding -Xmx512M option to java.

            prappo Pavel Rappo
            dkononenko Denis Kononenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: