JDK-6510892 : com/sun/net/httpserver/bugs/B6361557.java fails
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 6u26,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_oracle_5.6,linux_suse_sles_10
  • CPU: x86
  • Submitted: 2007-01-09
  • Updated: 2012-08-06
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u27Fixed 7 b105Fixed
Related Reports
Duplicate :  
Description
JDK        	    : Dolphin b05
Platform[s]         : Fails On:  SuSE 10.0
Failing Test [s]    : com/sun/net/httpserver/bugs/B6361557.java


    Test source location:
    =====================
/net/koori/onestop/jdk/7.0/latest/ws/j2se/test/com/sun/net/httpserver/bugs/B6361557.java

    jtr file location:
    ==================
File attached

    How to reproduce:
    ====================
    - Set JAVA_HOME to /net/koori/onestop/jdk/7.0/latest/binaries/linux-i586
    - cd /net/koori/onestop/jdk/7.0/latest/ws/j2se/test/com/sun/net/httpserver/bugs
    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/linux/bin/jtreg -r:/tmp -w:/tmp ./B6361557.java


    Test output:
    =============
java.net.SocketException: Too many open files
        at sun.nio.ch.Net.socket0(Native Method)
        at sun.nio.ch.Net.socket(Net.java:94)
        at sun.nio.ch.SocketChannelImpl.<init>(SocketChannelImpl.java:84)
        at sun.nio.ch.SelectorProviderImpl.openSocketChannel(SelectorProviderImpl.java:37)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:105)
        at java.nio.channels.SocketChannel.open(SocketChannel.java:145)
        at B6361557.main(B6361557.java:81)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
        at java.lang.Thread.run(Thread.java:619)


    Specific Machine Info:
    =====================
Linux scorpius2 2.6.13-15.10-default #1 Fri May 12 16:27:12 UTC 2006 i686 i686 i386 GNU/Linux
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32"
SUSE LINUX 10.0 (i586)
VERSION = 10.0

Comments
EVALUATION Opens 1000 connections, which run quite close to the default open file limit for Linux. jtreg could easily go over this limit in samevm mode. Solution is to run test in othervm mode.
30-07-2010