锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人午夜视频在线,h色视频在线观看,2019中文亚洲字幕http://www.aygfsteel.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.aygfsteel.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.aygfsteel.com/super/archive/2010/09/15/332102.html</guid><wfw:comment>http://www.aygfsteel.com/super/comments/332102.html</wfw:comment><comments>http://www.aygfsteel.com/super/archive/2010/09/15/332102.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/super/comments/commentRss/332102.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.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灝卞彲浠ヤ簡<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.aygfsteel.com/super/aggbug/332102.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/super/" target="_blank">鐜嬪崼鍗?/a> 2010-09-15 17:57 <a href="http://www.aygfsteel.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"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">讷河市</a>| <a href="http://" target="_blank">张掖市</a>| <a href="http://" target="_blank">芷江</a>| <a href="http://" target="_blank">沧州市</a>| <a href="http://" target="_blank">靖边县</a>| <a href="http://" target="_blank">淅川县</a>| <a href="http://" target="_blank">乐平市</a>| <a href="http://" target="_blank">都兰县</a>| <a href="http://" target="_blank">富阳市</a>| <a href="http://" target="_blank">什邡市</a>| <a href="http://" target="_blank">河源市</a>| <a href="http://" target="_blank">昌江</a>| <a href="http://" target="_blank">盈江县</a>| <a href="http://" target="_blank">吉木乃县</a>| <a href="http://" target="_blank">门头沟区</a>| <a href="http://" target="_blank">阿瓦提县</a>| <a href="http://" target="_blank">永和县</a>| <a href="http://" target="_blank">青海省</a>| <a href="http://" target="_blank">大宁县</a>| <a href="http://" target="_blank">黄龙县</a>| <a href="http://" target="_blank">罗江县</a>| <a href="http://" target="_blank">宁德市</a>| <a href="http://" target="_blank">沁源县</a>| <a href="http://" target="_blank">叙永县</a>| <a href="http://" target="_blank">洮南市</a>| <a href="http://" target="_blank">盐池县</a>| <a href="http://" target="_blank">阿巴嘎旗</a>| <a href="http://" target="_blank">马龙县</a>| <a href="http://" target="_blank">广丰县</a>| <a href="http://" target="_blank">韩城市</a>| <a href="http://" target="_blank">屏南县</a>| <a href="http://" target="_blank">宁南县</a>| <a href="http://" target="_blank">丰台区</a>| <a href="http://" target="_blank">高青县</a>| <a href="http://" target="_blank">佛冈县</a>| <a href="http://" target="_blank">景宁</a>| <a href="http://" target="_blank">繁峙县</a>| <a href="http://" target="_blank">北票市</a>| <a href="http://" target="_blank">宁津县</a>| <a href="http://" target="_blank">自治县</a>| <a href="http://" 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>