kennywu
2006-03-22 12:14:49 UTC
Hi,
I turn on the jdbc metrics as follows in the file jrun.xml:
<attribute name="metricsFormat">Total JDBC timeouts: {jdbc.timeouts} pool
size: {jdbc.poolSize} active connections: {jdbc.activeConnections} query
duration: {jdbc.queryDuration} query count: {jdbc.queryCount}</attribute>
and the log shows:
03/22 12:41:33 metrics Total JDBC timeouts: 0 pool size: 2 active connections:
0 query duration: 0 query count: 0
03/22 12:41:43 metrics Total JDBC timeouts: 0 pool size: 2 active connections:
0 query duration: 0 query count: 0
03/22 12:41:53 metrics Total JDBC timeouts: 0 pool size: 2 active connections:
0 query duration: 0 query count: 0
03/22 12:42:03 metrics Total JDBC timeouts: 1 pool size: 1 active connections:
-1 query duration: 12 query count: 5
03/22 12:42:13 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
-1 query duration: 0 query count: 0
There is a timeouts at 12:42:03 and then the active connections becomes -1.
What is the meaning of this -1?
This situation continues until I restart the jrun at about 17:02:29.
03/22 17:01:59 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
-1 query duration: 0 query count: 0
03/22 17:02:09 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
-1 query duration: 0 query count: 0
03/22 17:02:29 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
0 query duration: 0 query count: 0
03/22 17:02:39 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
0 query duration: 0 query count: 0
At about 16:59, we receive error like this when there is some database
activities:
java.sql.SQLException: SQLException while attempting to connect:
java.sql.SQLException: Io exception: Connection reset
java.sql.SQLException: SQLException while attempting to connect:
java.sql.SQLException: Io exception: The Network Adapter could not establish
the connection
This trigger the restart jrun action.
Please help. Thanks.
Regards,
Kenny
I turn on the jdbc metrics as follows in the file jrun.xml:
<attribute name="metricsFormat">Total JDBC timeouts: {jdbc.timeouts} pool
size: {jdbc.poolSize} active connections: {jdbc.activeConnections} query
duration: {jdbc.queryDuration} query count: {jdbc.queryCount}</attribute>
and the log shows:
03/22 12:41:33 metrics Total JDBC timeouts: 0 pool size: 2 active connections:
0 query duration: 0 query count: 0
03/22 12:41:43 metrics Total JDBC timeouts: 0 pool size: 2 active connections:
0 query duration: 0 query count: 0
03/22 12:41:53 metrics Total JDBC timeouts: 0 pool size: 2 active connections:
0 query duration: 0 query count: 0
03/22 12:42:03 metrics Total JDBC timeouts: 1 pool size: 1 active connections:
-1 query duration: 12 query count: 5
03/22 12:42:13 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
-1 query duration: 0 query count: 0
There is a timeouts at 12:42:03 and then the active connections becomes -1.
What is the meaning of this -1?
This situation continues until I restart the jrun at about 17:02:29.
03/22 17:01:59 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
-1 query duration: 0 query count: 0
03/22 17:02:09 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
-1 query duration: 0 query count: 0
03/22 17:02:29 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
0 query duration: 0 query count: 0
03/22 17:02:39 metrics Total JDBC timeouts: 0 pool size: 1 active connections:
0 query duration: 0 query count: 0
At about 16:59, we receive error like this when there is some database
activities:
java.sql.SQLException: SQLException while attempting to connect:
java.sql.SQLException: Io exception: Connection reset
java.sql.SQLException: SQLException while attempting to connect:
java.sql.SQLException: Io exception: The Network Adapter could not establish
the connection
This trigger the restart jrun action.
Please help. Thanks.
Regards,
Kenny