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

Reduce runtime and improve efficiency of KeepAliveTest

XMLWordPrintable

    • b21

        The test case sun/net/www/http/HttpClient/KeepAliveTest.java, introduced by JDK-8291226, could be more effective.

        It tests a matrix of HTTP client settings and server behavior, resulting in 160 individual test scenarios. Each is tested in an own freshly spawned JVM via the @run main/othervm directive. The need for new VMs is due to the fact that the behavior of the HTTP client is determined at VM initialization and can not be changed later on. However, for each distinct type of client settings, one VM can be reused. This would lead us from 160 JVM instantiations down to 16 which has a factor 10 influence on test runtime.

        Furthermore, there is room for additional cleanup in the test.

              clanger Christoph Langer
              clanger Christoph Langer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: