Hanging SQL query (Oracle)
From: Tomasz Majchrzak (tomekem_at_poczta.fm)
Date: 12/10/04
- Previous message: Daniel Dittmar: "Re: Servlets and JDBC"
- Next in thread: Virgil Green: "Re: Hanging SQL query (Oracle)"
- Reply: Virgil Green: "Re: Hanging SQL query (Oracle)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Dec 2004 11:38:09 +0100
Hello,
Execution of my query to Oracle db stops. My system is running on
Resin (v2.1) and Oracle 8i as database (on the same machine).
The system has been working fine for 2 years but problem appeared
recently. Code below is executed many times although problem with
stopped query occurs once per '500 times' or less. There are no
DML operations in the system so there are no blocking transactions.
When problem appears, you can still connect to Oracle from console.
Processor usage is low so it doesn't look like infinite loop.
I changed JDBC driver for newest one (the previous one was 3 years
old) but it didn't helped.
Do you have any suggestions?
Tomek
JDK: 1.4
System: Linux
Stack trace from JVM:
tcpConnection-6801-8:
[1] java.net.SocketInputStream.socketRead0 (native method)
[2] java.net.SocketInputStream.read (SocketInputStream.java:129)
[3] oracle.net.ns.Packet.receive (null)
[4] oracle.net.ns.NetInputStream.getNextPacket (null)
[5] oracle.net.ns.NetInputStream.read (null)
[6] oracle.net.ns.NetInputStream.read (null)
[7] oracle.net.ns.NetInputStream.read (null)
[8] oracle.jdbc.ttc7.MAREngine.unmarshalUB1 (null)
[9] oracle.jdbc.ttc7.MAREngine.unmarshalSB1 (null)
[10] oracle.jdbc.ttc7.Oall7.receive (null)
[11] oracle.jdbc.ttc7.TTC7Protocol.doOall7 (null)
[12] oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe (null)
[13] oracle.jdbc.driver.OracleStatement.doExecuteQuery (null)
[14] oracle.jdbc.driver.OracleStatement.doExecute (null)
[15] oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout (null)
[16] oracle.jdbc.driver.OracleStatement.executeQuery (null)
[17] my_packet.my_page (null)
..
..
[20] com.caucho.jsp.JavaPage.service (JavaPage.java:75)
[21] com.caucho.jsp.Page.subservice (Page.java:485)
[22] com.caucho.server.http.FilterChainPage.doFilter (FilterChainPage.java:182)
[23] com.caucho.server.http.Invocation.service (Invocation.java:312)
[24] com.caucho.server.http.CacheInvocation.service (CacheInvocation.java:135)
[25] com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:342)
[26] com.caucho.server.http.RunnerRequest.handleConnection (RunnerRequest.java:272)
[27] com.caucho.server.TcpConnection.run (TcpConnection.java:137)
[28] java.lang.Thread.run (Thread.java:536)
- Previous message: Daniel Dittmar: "Re: Servlets and JDBC"
- Next in thread: Virgil Green: "Re: Hanging SQL query (Oracle)"
- Reply: Virgil Green: "Re: Hanging SQL query (Oracle)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|