锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲综合AV在线在线播放,亚洲久悠悠色悠在线播放,亚洲精品无码鲁网中文电影http://www.tkk7.com/super/category/46346.htmlzh-cnWed, 15 Sep 2010 10:06:36 GMTWed, 15 Sep 2010 10:06:36 GMT60浣跨敤 apache common dbcp +common pool+mysql榪炴帴鏃犳晥鐨勯棶棰?/title><link>http://www.tkk7.com/super/archive/2010/09/15/332102.html</link><dc:creator>鐜嬪崼鍗?/dc:creator><author>鐜嬪崼鍗?/author><pubDate>Wed, 15 Sep 2010 09:57:00 GMT</pubDate><guid>http://www.tkk7.com/super/archive/2010/09/15/332102.html</guid><wfw:comment>http://www.tkk7.com/super/comments/332102.html</wfw:comment><comments>http://www.tkk7.com/super/archive/2010/09/15/332102.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/super/comments/commentRss/332102.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/super/services/trackbacks/332102.html</trackback:ping><description><![CDATA[<br /> <br /> <br /> Throwable occurred: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 50,123,505 milliseconds ago.  The last packet sent successfully to the server was 50,123,505 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.<br /> <br /> <br /> 榪欎富瑕佹槸鐢變袱涓師鍥犲紩璧鋒潵鐨?<br /> 1.mysql 浼?xì)鑷姩鍏抽棴闀挎棄櫁翠笉鐢ㄧ殑connection,涓涓繛鎺ュ鏋滃浜巗leep鐘舵佽揪鍒癿ysql鐨勫弬鏁皐ait_timeout鎸囧畾鐨勬椂闂?榛樿涓?灝忔椂),灝辨槸鑷姩鍏抽棴榪欎釜榪炴帴<br /> 2.common pool涓病鏈夋寚瀹氱浉搴旂殑榪炴帴媯(gè)鏌ュ弬鏁?br /> <br /> <br /> 瑙e喅鍔炴硶:浠巆ommon pool鐨勯厤緗弬鏁版潵瑙e喅:<br /> <br /> <p> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"><br />   <property name="driverClassName"><br />    <value>${db.driver}</value><br />   </property><br />   <property name="url"><br />    <value>${db.url}</value><br />   </property><br />   <property name="username"><br />    <value>${db.user}</value><br />   </property><br />   <property name="password"><br />    <value>${db.password}</value><br />   </property><br />   <property name="maxActive"><br />    <value>100</value><br />   </property><br />   <property name="maxIdle"><br />    <value>50</value><br />   </property><br />   <property name="maxWait"><br />    <value>10000</value><br />   </property></p> <p><br /> <span style="color: red">  <property name="timeBetweenEvictionRunsMillis"><br />    <value>3600000</value><!--1 hours--><br />   </property></span><br /> <!--<br />   <property name="minEvictableIdleTimeMillis"><br />    <value>20000</value><br />   </property><br /> --><br />   <br /> <span style="color: red">  <property name="testWhileIdle"><br />    <value>true</value><br />   </property><br />   <property name="validationQuery"><br />    <value>select 1 from dual</value><br />   </property></span><br />  </bean><br /> </p> 浣跨敤涓婅堪鐨勪笁涓孩鑹茬殑鍙傛暟,灝卞彲浠ラ伩鍏嶈繖涓棶棰?榪欎笁涓弬鏁扮殑鎰忎箟:<br /> <br /> timeBetweenEvictionRunsMillis:鍚姩connection鏍¢獙瀹氭椂鍣?瀹氭椂鍣ㄨ繍琛屾椂闂撮棿闅斿氨鏄痶imeBetweenEvictionRunsMillis鐨勫?榛樿涓?1,琛ㄧず涓嶅惎鍔ㄥ畾鏃跺櫒,榪欓噷璁懼畾涓?灝忔椂,鍙灝忎簬mysql鐨剋ait_timeout灝卞彲浠ヤ簡(jiǎn)<br /> <br /> testWhileIdle: true,琛ㄧず媯(gè)鏌dle鐨刢onnection,false涓轟笉媯(gè)鏌?br /> <br /> validationQuery:鐢ㄤ簬媯(gè)鏌onnection鐨剆ql璇彞.<br /> <br /> <br /> 榪欏彧鏄竴縐嶆柟娉?鍙﹀鐨勫嚑縐嶆柟娉?<br /> <br /> timeBetweenEvictionRunsMillis+minEvictableIdleTimeMillis:榪欑鏂瑰紡涓嶆鏌onnection鐨勬湁鏁堟?鑰屾槸媯(gè)鏌ヨ繛鎺ョ殑絀洪棽鏃墮棿,澶т簬minEvictableIdleTimeMillis灝辨竻闄?<br /> <br />   <property name="timeBetweenEvictionRunsMillis"><br />    <value>3600000</value><!--1 hours--><br />   </property><br /> <br />   <property name="minEvictableIdleTimeMillis"><br />    <value>120000</value><!--connection鐨勭┖闂叉椂闂村ぇ浜庤繖涓?灝辯洿鎺ヨ鍏抽棴,騫朵粠榪炴帴姹犱腑鍒犻櫎--><br />   </property><br /> <br /> <br /> 濡傛灉涓嶅枩嬈㈢敤瀹氭椂鍣?涔熷彲浠ラ厤緗畉estOnBorrow+validationQuery鍙傛暟:姣忔浠庤繛鎺ユ睜鍙栧弬鏁伴兘浼?xì)鏍¢獙杩炴帴鐨勬湁鏁堟?瀹為檯涓婅繖縐嶆柟寮忔ц兘浼?xì)姣斿畾鏃跺櫒宸?<br />   <property name="testOnBorrow"><br />    <value>true</value><br />   </property><br />   <property name="validationQuery"><br />    <value>select 1 from dual</value><br />   </property><br /> <br /> <br /> 鍙﹀,涔熷彲浠ョ敤testOnReturn+validationQuery,涓嶈繃鏈繀浼?xì)瑙e喅闂?榪欒〃紺烘瘡嬈′嬌鐢ㄥ畬榪炴帴,褰掕繕榪炴帴姹犵殑鏃跺欐鏌ヨ繛鎺ョ殑鏈夋晥鎬?榪欐湁鍙兘瀵艱嚧浣跨敤涓嬈℃棤鏁堢殑榪炴帴,鏈濂戒笉瑕佺敤.<br /> <br /> <br /> 涓婇潰鐨勫嚑縐嶆柟娉曞彲浠ュ悎騫朵嬌鐢?鍙槸媯(gè)鏌ョ殑鐐瑰浜?鏈繀鏄ソ浜?br /> <br /> <br /> 鍙﹀,涔熷彲浠ヤ嬌鐢ˋbandoned鐨勯偅鍑犱釜鍙傛暟,鏉ュ垹闄よ繛鎺ユ睜涓殑榪炴帴.涔熻兘杈懼埌鏁堟灉.鎴戞病嫻嬭瘯.<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <img src ="http://www.tkk7.com/super/aggbug/332102.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/super/" target="_blank">鐜嬪崼鍗?/a> 2010-09-15 17:57 <a href="http://www.tkk7.com/super/archive/2010/09/15/332102.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://chinacmk.com" target="_blank">国产精品亚洲综合五月天</a>| <a href="http://7788mgqb.com" target="_blank">亚洲色偷偷综合亚洲av78</a>| <a href="http://zibochanglong.com" target="_blank">国产亚洲精品美女</a>| <a href="http://svvnn.com" target="_blank">一个人看的www免费视频在线观看</a>| <a href="http://www-175345.com" target="_blank">国产精品久久免费</a>| <a href="http://by6174.com" target="_blank">亚洲性无码av在线</a>| <a href="http://vip98888.com" target="_blank">久久久久久99av无码免费网站</a>| <a href="http://367316.com" target="_blank">国产成人亚洲综合一区</a>| <a href="http://52099jy.com" target="_blank">免费视频中文字幕</a>| <a href="http://q2c6.com" target="_blank">国产精品hd免费观看</a>| <a href="http://ywgj50225.com" target="_blank">亚洲欧洲美洲无码精品VA</a>| <a href="http://nibayuan.com" target="_blank">a在线免费观看视频</a>| <a href="http://biarn.com" target="_blank">久久亚洲AV无码精品色午夜麻豆</a>| <a href="http://hssw1688.com" target="_blank">91精品免费高清在线</a>| <a href="http://mordernshasha.com" target="_blank">亚洲国产成人乱码精品女人久久久不卡</a>| <a href="http://xingqiu1.com" target="_blank">亚洲av成本人无码网站</a>| <a href="http://ninidian.com" target="_blank">男人的天堂亚洲一区二区三区</a>| <a href="http://pyjxyey.com" target="_blank">亚洲精品理论电影在线观看</a>| <a href="http://97chaopeng2.com" target="_blank">国产免费无遮挡精品视频</a>| <a href="http://888xxss.com" target="_blank">成人午夜免费视频</a>| <a href="http://wwwzs88.com" target="_blank">国产一级一片免费播放</a>| <a href="http://yanshimlxg.com" target="_blank">九九久久精品国产免费看小说 </a>| <a href="http://youkabaitiao.com" target="_blank">全部免费毛片在线</a>| <a href="http://5079157.com" target="_blank">亚洲午夜精品一区二区</a>| <a href="http://flowsns.com" target="_blank">免费大片黄在线观看yw</a>| <a href="http://88109a.com" target="_blank">色网站在线免费观看</a>| <a href="http://onisterwines.com" target="_blank">在线播放亚洲第一字幕</a>| <a href="http://huafagz.com" target="_blank">国产精品亚洲专区无码WEB</a>| <a href="http://yw835.com" target="_blank">国产亚洲精久久久久久无码AV</a>| <a href="http://jyd56.com" target="_blank">嫩草成人永久免费观看</a>| <a href="http://bixnu.com" target="_blank">国产成人精品日本亚洲11</a>| <a href="http://xzgfbxg.com" target="_blank">亚洲精品无码久久久久AV麻豆</a>| <a href="http://taixin668.com" target="_blank">国产精品白浆在线观看免费</a>| <a href="http://zaidongmaixi.com" target="_blank">亚洲综合精品伊人久久</a>| <a href="http://97chaopeng2.com" target="_blank">亚洲中文字幕无码爆乳av中文</a>| <a href="http://44jjy.com" target="_blank">97在线视频免费播放</a>| <a href="http://dgyxcsb.com" target="_blank">国产精品亚洲综合</a>| <a href="http://yygcui.com" target="_blank">亚洲国产成人综合</a>| <a href="http://942woool.com" target="_blank">亚洲国产a级视频</a>| <a href="http://www55nana.com" target="_blank">国产免费的野战视频</a>| <a href="http://wxzg66.com" target="_blank">免费手机在线看片</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>