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

java.net.SocketException: Too many open files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta2
    • generic
    • solaris_7

      I'm running the test for bug 4474991 (please see that bug for instructions on
      how to run the tests) and I'm seeing this failure with build 70. This is
      from the client part of the test. In the same shell (same environment) this
      tests runs past this point with build 69.

      starting client...
      created 40 clients
      Client: java.net.SocketException: Too many open files
              at java.net.Socket.createImpl(Socket.java:307)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Method.java:311)
              at sun.nio.ch.Reflect.invokeIO(Reflect.java:93)
              at sun.nio.ch.Net.createImpl(Net.java:111)
              at sun.nio.ch.ChannelSocket.create(ChannelSocket.java:49)
              at sun.nio.ch.SocketChannelImpl.<init>(SocketChannelImpl.java:53)
              at sun.nio.ch.SelectorProviderImpl.openSocketChannel(SelectorProviderImpl.java:41)
              at java.nio.channels.SocketChannel.open(SocketChannel.java:113)
              at RemoteEntity.reset(SelectorTest.java:227)
              at RemoteEntity.connect(SelectorTest.java:237)
              at RemoteEntity.cycle(SelectorTest.java:256)
              at SelectorTest$Client.go(SelectorTest.java:106)
              at TestThread.run(TestThread.java:27)
      Exception in thread "main" java.lang.Exception: Failure
              at SelectorTest.main(SelectorTest.java:76)

            mmcclosksunw Michael Mccloskey (Inactive)
            jmasa Jon Masamitsu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: