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

Http URL download failed with OutOfMemoryError on LinuxRH7.1 with kernel2.4.1

    • x86
    • linux

      Http tests failed with OutOfMemoryError on Linux RH7.1(kernel version 2.4.1) when tried to down load URL content. Test failed with merlin build 68. Same test passed on Solaris windows2kprof / 98 and Linux RH6.2 (kernel 2.2.14) . What this test does is continuously opens set of URLs and downloads the content.
      Its giving the following exception.


      Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
              at java.lang.Thread.start(Native Method)
              at sun.net.www.http.KeepAliveCache$1.run(KeepAliveCache.java:85)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.net.www.http.KeepAliveCache.put(KeepAliveCache.java:78)
              at sun.net.www.http.HttpClient.finished(HttpClient.java:332)
              at sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:70)
              at sun.net.www.MeteredStream.justRead(MeteredStream.java:47)
              at sun.net.www.MeteredStream.read(MeteredStream.java:69)
              at java.io.FilterInputStream.read(FilterInputStream.java:93)
              at JHttpGetURL.doTestURL(JHttpGetURL.java:159)
              at JHttpGetURL.main(JHttpGetURL.java:87)


      How to reproduce it:
      --------------------

      1. Take tests from
      /net/sqesvr/export/vsn/NET/merlin_jdk_net/TestSuite

      2. set JAVA_HOME and STABLE_JAVA_HOME to current jdk.

      3. do a make with make all

      4. Got to /tests/http and execute http client and server as below.

      ./run_http_server
      ./run_http_client

      5. View for the exception on client side. JHttpGetURL.java test fails.



      OtherInformation:
      -----------------

      Same test passed on all other platforms.



            alanb Alan Bateman
            vakellasunw Venkata Akella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: