atom feed9 messages in net.java.dev.glassfish.usersRe: setTcpNoDelay and setReuseAddress...
FromSent OnAttachments
glas...@javadesktop.orgDec 10, 2007 11:28 pm 
Jeanfrancois ArcandDec 11, 2007 9:35 am 
glas...@javadesktop.orgDec 11, 2007 3:25 pm 
Jeanfrancois ArcandDec 12, 2007 3:15 am 
glas...@javadesktop.orgMar 6, 2008 9:34 am 
Jeanfrancois ArcandMar 6, 2008 9:52 am 
glas...@javadesktop.orgMar 11, 2008 12:11 pm 
glas...@javadesktop.orgApr 9, 2008 8:25 am 
glas...@javadesktop.orgSep 11, 2008 3:49 am 
Subject:Re: setTcpNoDelay and setReuseAddress exceptions in 58g
From:Jeanfrancois Arcand (Jean@Sun.COM)
Date:Mar 6, 2008 9:52:20 am
List:net.java.dev.glassfish.users

Hi,

glas@javadesktop.org wrote:

I think we have a similar issue. I am using Glassfish v2ur1 on Solaris 10,
Sunfire T1000 for classroom use. Yesterday we were creating JDBC connection
pools to mysql databases (10 students, 10 databases on the same MySQL server).
The admin console became unresponsive and we could not move to creating JDBC
resources to these pools.

What is surprising is that only 1 of the 24 threads was busy (mpstat 1), all the
rest of the CPU threads were idle. prstat showed the Java process had a CPU
utilization of 4.4%.

I have restarted the app-server and things look ok for now, but is there a
work-around if such a thing happens again while creating JDBC resources? What is
the cause? Is there a schedule for the fix?

Can you add, in domain.xml under http-service element:

<property name="tcpNoDelay" value="false"/>

and see if that help. Scary how bad Solaris react with that algorithm...will ping someone inside ;-)

A+

-- Jeanfrancois

Thanks Manish

117 WARNING Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at
sun.nio.ch.Net.setIntOption(Net... (details)
javax.enterprise.system.container.web Mar 5, 2008 20:57:56.346
_ThreadID=30;_ThreadName=SelectorThread-4848;_RequestID=85c70e9e-dd77-400b-9699-da7d7ce512fb; 116 WARNING Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at
sun.nio.ch.Net.setIntOption(Net... (details)
javax.enterprise.system.container.web Mar 5, 2008 20:57:56.336
_ThreadID=30;_ThreadName=SelectorThread-4848;_RequestID=85c70e9e-dd77-400b-9699-da7d7ce512fb; 115 WARNING Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at
sun.nio.ch.Net.setIntOption(Net... (details)
javax.enterprise.system.container.web Mar 5, 2008 20:57:56.322
_ThreadID=30;_ThreadName=SelectorThread-4848;_RequestID=85c70e9e-dd77-400b-9699-da7d7ce512fb; 114 INFO Sent the event to instance:[ResourceDeployEvent -- redeploy
jcp/ManishTest](details) javax.enterprise.system.tools.admin Mar 5, 2008
20:57:43.021
_ThreadID=35;_ThreadName=httpWorkerThread-4848-3;ResourceDeployEvent -- redeploy
jcp/ManishTest; 113 INFO Resource Redeployed: [jcp:GutierrezConnPool].(details)
javax.enterprise.system.core Mar 5, 2008 20:57:43.020
_ThreadID=35;_ThreadName=httpWorkerThread-4848-3;jcp:GutierrezConnPool;

Log Entry Detail

Timestamp Mar 5, 2008 20:57:56.322 Log Level WARNING Logger javax.enterprise.system.container.web Name-Value Pairs
_ThreadID=30;_ThreadName=SelectorThread-4848;_RequestID=85c70e9e-dd77-400b-9699-da7d7ce512fb; Record Number 115 Message ID setTcpNoDelay exception java.net.SocketException Complete Message 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:1902)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1475)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1439)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1350)
at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1284)
at com.sun.enterprise.web.connect or.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1247) at
com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1223) [Message sent by forum member 'magrawal' (magrawal)]

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