users@glassfish.java.net

setTcpNoDelay and setReuseAddress exceptions in 58g

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Dec 2007 23:29:13 PST

We have a number of test and QA systems that are exhibiting the exceptions shown in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6497447

All systems are running Solaris 10 on Sun T1000/T2000 hardware.

Around the same time that this happens the systems seem to become very unresponsive - is this linked to the exceptions?

Cheers
Cameron

Here is a brief snippet from the log (10min period):

[#|2007-12-10T15:31:41.002+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setTcpNoDelay exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.noDelay(SocketOptsImpl.java:284)
        at sun.nio.ch.OptionAdaptor.setTcpNoDelay(OptionAdaptor.java:48)
        at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:268)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1880)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:31:41.005+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setReuseAddress exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)
        at sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)
        at sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1888)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:31:41.008+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setTcpNoDelay exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.noDelay(SocketOptsImpl.java:284)
        at sun.nio.ch.OptionAdaptor.setTcpNoDelay(OptionAdaptor.java:48)
        at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:268)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1880)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:33:20.610+0800|WARNING|sun-appserver9.1|javax.jms.Connection.mqjmsra|_ThreadID=28;_ThreadName=Timer-5;_RequestID=d263b9fb-8db3-41f2-b398-9b81de4a5cb5;|MQJMSRA_DC2001: connectionId=3902957053636390144:_destroy():called on a connection that was not closed.|#]

[#|2007-12-10T15:33:20.611+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setReuseAddress exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)
        at sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)
        at sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1888)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:35:44.001+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setTcpNoDelay exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.noDelay(SocketOptsImpl.java:284)
        at sun.nio.ch.OptionAdaptor.setTcpNoDelay(OptionAdaptor.java:48)
        at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:268)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1880)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:36:39.729+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setReuseAddress exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)
        at sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)
        at sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1888)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:36:39.730+0800|WARNING|sun-appserver9.1|javax.jms.Connection.mqjmsra|_ThreadID=28;_ThreadName=Timer-5;_RequestID=d263b9fb-8db3-41f2-b398-9b81de4a5cb5;|MQJMSRA_DC2001: connectionId=3902957053636392192:_destroy():called on a connection that was not closed.|#]

[#|2007-12-10T15:38:18.328+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setTcpNoDelay exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.noDelay(SocketOptsImpl.java:284)
        at sun.nio.ch.OptionAdaptor.setTcpNoDelay(OptionAdaptor.java:48)
        at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:268)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1880)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
|#]

[#|2007-12-10T15:41:35.823+0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=30;_ThreadName=SelectorThread-8080;_RequestID=e05c521b-aaf7-4a9e-949e-c2d25d8abbff;|setReuseAddress exception
java.net.SocketException: Invalid argument
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:154)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
        at sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)
        at sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)
        at sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1888)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
[Message sent by forum member 'cameronr' (cameronr)]

http://forums.java.net/jive/thread.jspa?messageID=249455