users@glassfish.java.net

Re: setTcpNoDelay and setReuseAddress exceptions in 58g

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 06 Mar 2008 12:52:43 -0500

Hi,

glassfish_at_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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>