锘??xml version="1.0" encoding="utf-8" standalone="yes"?>456亚洲人成在线播放网站,亚洲综合免费视频,亚洲日韩精品无码专区加勒比☆ 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涓病鏈夋寚瀹氱浉搴旂殑榪炴帴媯鏌ュ弬鏁?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灝卞彲浠ヤ簡<br /> <br /> testWhileIdle: true,琛ㄧず媯鏌dle鐨刢onnection,false涓轟笉媯鏌?br /> <br /> validationQuery:鐢ㄤ簬媯鏌onnection鐨剆ql璇彞.<br /> <br /> <br /> 榪欏彧鏄竴縐嶆柟娉?鍙﹀鐨勫嚑縐嶆柟娉?<br /> <br /> timeBetweenEvictionRunsMillis+minEvictableIdleTimeMillis:榪欑鏂瑰紡涓嶆鏌onnection鐨勬湁鏁堟?鑰屾槸媯鏌ヨ繛鎺ョ殑絀洪棽鏃墮棿,澶т簬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 /> 涓婇潰鐨勫嚑縐嶆柟娉曞彲浠ュ悎騫朵嬌鐢?鍙槸媯鏌ョ殑鐐瑰浜?鏈繀鏄ソ浜?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://zcrencai.com" target="_blank">一级做a免费视频观看网站</a>| <a href="http://173ba.com" target="_blank">亚洲啪AV永久无码精品放毛片</a>| <a href="http://yanshimlxg.com" target="_blank">精品亚洲成a人在线观看</a>| <a href="http://323799.com" target="_blank">中文字幕无码免费久久99 </a>| <a href="http://wxbhnkyy39.com" target="_blank">久久99亚洲网美利坚合众国</a>| <a href="http://yaku100.com" target="_blank">成人国产精品免费视频</a>| <a href="http://sdzsx.com" target="_blank">亚洲熟妇av一区二区三区漫画</a>| <a href="http://www-070755.com" target="_blank">国产精品九九久久免费视频 </a>| <a href="http://gzmandala.com" target="_blank">免费国产在线观看</a>| <a href="http://0354888.com" target="_blank">羞羞视频免费网站入口</a>| <a href="http://xsdjiagu.com" target="_blank">亚洲av无码专区在线观看素人</a>| <a href="http://51nianyefan.com" target="_blank">免费看一级毛片在线观看精品视频</a>| <a href="http://dszb0099.com" target="_blank">免费永久在线观看黄网站</a>| <a href="http://8953y.com" target="_blank">永久免费无码网站在线观看个</a>| <a href="http://9522952.com" target="_blank">亚洲精品国产自在久久</a>| <a href="http://fenglengqi.com" target="_blank">在线涩涩免费观看国产精品</a>| <a href="http://01shanzhai.com" target="_blank">亚洲日本中文字幕</a>| <a href="http://haidiaori.com" target="_blank">国产情侣激情在线视频免费看</a>| <a href="http://xsjxp.com" target="_blank">亚洲精品GV天堂无码男同</a>| <a href="http://uiui6.com" target="_blank">亚洲国产午夜福利在线播放</a>| <a href="http://yygcui.com" target="_blank">国产成人无码区免费网站</a>| <a href="http://by6215.com" target="_blank">久久久久亚洲AV成人片</a>| <a href="http://haiwaizhuyun.com" target="_blank">亚洲中文无码永久免费</a>| <a href="http://77sosoo.com" target="_blank">国产午夜亚洲精品不卡免下载</a>| <a href="http://www026qqcom.com" target="_blank">久久伊人亚洲AV无码网站</a>| <a href="http://bjsunic.com" target="_blank">无码国产精品一区二区免费式芒果</a>| <a href="http://yuanzhouxh.com" target="_blank">亚洲国产精品综合福利专区</a>| <a href="http://yyfass.com" target="_blank">麻豆国产人免费人成免费视频</a>| <a href="http://51porn3.com" target="_blank">一级成人a免费视频</a>| <a href="http://aa7852.com" target="_blank">亚洲丝袜美腿视频</a>| <a href="http://tuopumao.com" target="_blank">色吊丝最新永久免费观看网站</a>| <a href="http://www456788.com" target="_blank">一个人看的免费高清视频日本 </a>| <a href="http://longcais.com" target="_blank">亚洲AV无码成人专区片在线观看 </a>| <a href="http://youweidianqi.com" target="_blank">情侣视频精品免费的国产</a>| <a href="http://kanzhelu23.com" target="_blank">亚洲精品国产日韩无码AV永久免费网</a>| <a href="http://3838dydy.com" target="_blank">亚洲AV无码成人网站久久精品大</a>| <a href="http://bdgxhome.com" target="_blank">国产一卡2卡3卡4卡2021免费观看 国产一卡2卡3卡4卡无卡免费视频 </a>| <a href="http://606059.com" target="_blank">99re在线免费视频</a>| <a href="http://0453wcbyy.com" target="_blank">噜噜综合亚洲AV中文无码</a>| <a href="http://hzsprfm.com" target="_blank">亚洲日韩精品射精日</a>| <a href="http://zxbj0471.com" target="_blank">最近中文字幕mv手机免费高清</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>