Application Server hang can occur in socketRead0/socketRead method
 Technote (troubleshooting)
 
Problem(Abstract)
IBM® WebSphere® Application Server can hang in the socketRead/socketRead0 method when using SQLServer JDBC drivers with the application.
 
Cause
Javacore and threaddumps show all the threads are blocked on socketRead or socketRead0 and the stack looks like the following:

3XMTHREADINFO "Servlet.Engine.Transports : 20770" (TID:0x608B4940, sys_thread_t:0x3CB712A0, state:R, native ID:0x84AB) prio=5
4XESTACKTRACE at java.net.SocketInputStream.socketRead0(Native Method)
4XESTACKTRACE at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))
4XESTACKTRACE at com.microsoft.util.UtilSocketDataProvider.getArrayOfBytes(Unknown Source)
4XESTACKTRACE at com.microsoft.util.UtilBufferedDataProvider.cacheNextBlock(Unknown Source)
4XESTACKTRACE at com.microsoft.util.UtilBufferedDataProvider.getArrayOfBytes(Unknown Source)
4XESTACKTRACE at com.microsoft.jdbc.sqlserver.SQLServerDepacketizingDataProvider.signalStartOfPacket(Unknown Source)
4XESTACKTRACE at com.microsoft.util.UtilDepacketizingDataProvider.getByte(Unknown Source)
4XESTACKTRACE at
com.microsoft.util.UtilByteOrderedDataReader.readInt8(Unknown Source)
4XESTACKTRACE at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
4XESTACKTRACE at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
4XESTACKTRACE at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
4XESTACKTRACE at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
4XESTACKTRACE at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
4XESTACKTRACE at java.sql.DriverManager.getConnection(DriverManager.java(Compiled Code))
4XESTACKTRACE at java.sql.DriverManager.getConnection(DriverManager.java(Compiled Code))
4XESTACKTRACE at org.apache.jsp._nt_5F_authenticator._jspService(_nt_5F_authenticator.java(Compiled Code))
4XESTACKTRACE at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
4XESTACKTRACE at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
4XESTACKTRACE at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
4XESTACKTRACE at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
4XESTACKTRACE at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
4XESTACKTRACE at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
4XESTACKTRACE at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))

3XHNATIVESTACK Native Stack
NULL ------------
3XHSTACKLINE at 0xD0945838 in NET_Recv
3XHSTACKLINE at 0xD0955EB4 in Java_java_net_SocketInputStream_socketRead0
3XHSTACKLINE at 0x3B48227C in À^P

 
Resolving the problem
Refer to the following Microsoft® knowledge base article for details and update the JDBC Drivers.

FIX: JDBC Driver May Cause Application to Stop Responding During Multiple Transactions
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Hangs/Performance Degradation
Operating system(s): Windows
Software version: 6.1
Software edition:
Reference #: 1247072
IBM Group: Software Group
Modified date: Jul 31, 2007