United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6510892 com/sun/net/httpserver/bugs/B6361557.java fails
JDK-6510892 : com/sun/net/httpserver/bugs/B6361557.java fails

Details
Type:
Bug
Submit Date:
2007-01-09
Status:
Closed
Updated Date:
2012-08-06
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
other-libs
OS:
linux_suse_sles_10,linux_oracle_5.6
Sub-Component:
other
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u26,7
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

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.
                                     
2010-07-30



Hardware and Software, Engineered to Work Together