程序语言是java,使用了数据库连接池,一共有三台服务器对该数据库服务器进行连接,运行2天左右就会出现错误,错误内容为:com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request数据库的状态情况如下(连接IP进行了处理):
*************************** 1. row ***************************
  Type: InnoDB
  Name: 
Status: 
=====================================
120504  1:10:26 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 26 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 114373 1_second, 114372 sleeps, 10378 10_second, 10693 background, 10693 flush
srv_master_thread log flush and writes: 115265
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 8733, signal count 8790
Mutex spin waits 3197, rounds 5875, OS waits 132
RW-shared spins 8430, rounds 251786, OS waits 8389
RW-excl spins 4, rounds 6444, OS waits 211
Spin rounds per wait: 1.84 mutex, 29.87 RW-shared, 1611.00 RW-excl
------------
TRANSACTIONS
------------
Trx id counter A5088
Purge done for trx's n:o < A506E undo n:o < 0
History list length 2904
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started
MySQL thread id 648, OS thread handle 0x7fbebda63700, query id 375737 127.0.0.1 root
show engine innodb status
---TRANSACTION A5059, not started
MySQL thread id 647, OS thread handle 0x7fbebd54f700, query id 375680 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5076, not started
MySQL thread id 646, OS thread handle 0x7fbebd89c700, query id 375679 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5081, not started
MySQL thread id 645, OS thread handle 0x7fbebd07c700, query id 375718 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A507E, not started
MySQL thread id 644, OS thread handle 0x7fbebd13f700, query id 375713 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A5079, not started
MySQL thread id 643, OS thread handle 0x7fbebd612700, query id 375717 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A5001, not started
MySQL thread id 642, OS thread handle 0x7fbebd306700, query id 375716 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A5024, not started
MySQL thread id 641, OS thread handle 0x7fbebcf37700, query id 375734 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A4E83, not started
MySQL thread id 640, OS thread handle 0x7fbebd284700, query id 374450 *.*.*.143 asdktj34_sdfjssg
---TRANSACTION A4FBA, not started
MySQL thread id 639, OS thread handle 0x7fbebd180700, query id 375248 *.*.*.143 asdktj34_sdfjssg
---TRANSACTION A5073, not started
MySQL thread id 638, OS thread handle 0x7fbebd95f700, query id 375701 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A506A, not started
MySQL thread id 637, OS thread handle 0x7fbebcffa700, query id 375690 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A506F, not started
MySQL thread id 635, OS thread handle 0x7fbebd6d5700, query id 375691 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5069, not started
MySQL thread id 636, OS thread handle 0x7fbebda22700, query id 375681 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5074, not started
MySQL thread id 634, OS thread handle 0x7fbebccad700, query id 375669 *.*.*.143 asdktj34_sdfjssg
---TRANSACTION A507B, not started
MySQL thread id 633, OS thread handle 0x7fbebd243700, query id 375733 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A5087, not started
MySQL thread id 632, OS thread handle 0x7fbebd694700, query id 375735 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A507A, not started
MySQL thread id 630, OS thread handle 0x7fbebd5d1700, query id 375699 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5065, not started
MySQL thread id 631, OS thread handle 0x7fbebce33700, query id 375700 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A4FAF, not started
MySQL thread id 629, OS thread handle 0x7fbebcd70700, query id 375230 *.*.*.143 asdktj34_sdfjssg
---TRANSACTION A4EAE, not started
MySQL thread id 627, OS thread handle 0x7fbebd2c5700, query id 374623 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A4EAC, not started
MySQL thread id 626, OS thread handle 0x7fbebd50e700, query id 374603 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A4EBE, not started
MySQL thread id 625, OS thread handle 0x7fbebd202700, query id 374601 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A4EAF, not started
MySQL thread id 624, OS thread handle 0x7fbebd388700, query id 374575 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A505C, not started
MySQL thread id 617, OS thread handle 0x7fbebcdf2700, query id 375727 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A4FBB, not started
MySQL thread id 616, OS thread handle 0x7fbebceb5700, query id 375249 *.*.*.143 asdktj34_sdfjssg
---TRANSACTION A4B98, not started
MySQL thread id 615, OS thread handle 0x7fbebd0fe700, query id 375666 *.*.*.143 asdktj34_sdfjssg
---TRANSACTION A4EC5, not started
MySQL thread id 610, OS thread handle 0x7fbebd03b700, query id 374622 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A4EB1, not started
MySQL thread id 609, OS thread handle 0x7fbebd1c1700, query id 374602 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A5086, not started
MySQL thread id 608, OS thread handle 0x7fbebd3c9700, query id 375728 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5082, not started
MySQL thread id 599, OS thread handle 0x7fbebcdb1700, query id 375722 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5075, not started
MySQL thread id 598, OS thread handle 0x7fbebd757700, query id 375721 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5084, not started
MySQL thread id 597, OS thread handle 0x7fbebd91e700, query id 375731 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5085, not started
MySQL thread id 594, OS thread handle 0x7fbebd48c700, query id 375732 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A5083, not started
MySQL thread id 596, OS thread handle 0x7fbebcfb9700, query id 375729 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A507C, not started
MySQL thread id 595, OS thread handle 0x7fbebd653700, query id 375707 *.73.*.* asdktj34_sdfjssg
---TRANSACTION A4C45, not started
MySQL thread id 555, OS thread handle 0x7fbebd590700, query id 372886 *.*.*.141 asdktj34_sdfjssg
---TRANSACTION A4C2F, not started
MySQL thread id 554, OS thread handle 0x7fbebd44b700, query id 372807 *.*.*.141 asdktj34_sdfjssg
--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (read thread)
I/O thread 4 state: waiting for i/o request (read thread)
I/O thread 5 state: waiting for i/o request (read thread)
I/O thread 6 state: waiting for i/o request (write thread)
I/O thread 7 state: waiting for i/o request (write thread)
I/O thread 8 state: waiting for i/o request (write thread)
I/O thread 9 state: waiting for i/o request (write thread)
Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] ,
 ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
797 OS file reads, 123402 OS file writes, 66482 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.23 writes/s, 0.12 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 11, seg size 13, 17 merges
merged operations:
 insert 339, delete  1111, delete 0
discarded operations:
 insert 0, delete  0, delete 0
Hash table size 8850487, node heap has 101 buffer(s)
1010.19 hash searches/s, 9.27 non-hash searches/s
---
LOG
---
Log sequence number 81365029
Log flushed up to   81365029
Last checkpoint at  81365029
0 pending log writes, 0 pending chkp writes
48397 log i/o's done, 0.04 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 4395630592; in additional pool allocated 0
Dictionary memory allocated 222419
Buffer pool size   262144
Free buffers       261065
Database pages     978
Old database pages 341
Modified db pages  0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 12, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 787, created 191, written 72545
0.00 reads/s, 0.00 creates/s, 0.19 writes/s
Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 978, unzip_LRU len: 0
I/O sum[0]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread process no. 8408, id 140452106913536, state: sleeping
Number of rows inserted 15312, updated 8265, deleted 11309, read 189808546
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 1018.85 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================