{"id":3940,"date":"2019-03-01T15:22:21","date_gmt":"2019-03-01T07:22:21","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3940"},"modified":"2019-03-01T15:22:21","modified_gmt":"2019-03-01T07:22:21","slug":"%e9%98%bf%e9%87%8c-druid-%e6%8a%a5-wait-millis-74583-active-5-maxactive-5-%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3940","title":{"rendered":"\u963f\u91cc Druid \u62a5 wait millis 74583, active 5, maxActive 5 \u95ee\u9898\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\uff0c\u6211\u4eec\u90e8\u95e8\u5728\u5bf9\u5373\u5c06\u65b0\u4e0a\u7ebf\u7684\u4e00\u4e2a\u65b0\u529f\u80fd\u505a\u538b\u6d4b\uff0c\u65b0\u6765\u7684\u540c\u4e8b\u641e\u4e86\u4e00\u5929\uff0c\u5bf9 Jmeter \u914d\u7f6e 100 \u7684\u5e76\u53d1\uff0c\u4e00\u8dd1\u6570\u636e\u5c31\u53d1\u751f OutOfMemoryError\uff0c\u901a\u8fc7\u6211\u7684\u89c2\u5bdf\uff0c\u6700\u7ec8\u53d1\u73b0\u662f Druid \u914d\u7f6e\u7684\u592a\u5c0f\u4e86\u3002\n<\/p>\n<p>\n\t\u76f8\u5173\u62a5\u9519\u7684\u5185\u5bb9\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\tCaused by: com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60365, active 5, maxActive 5<br \/>\n\t&nbsp;&nbsp; &nbsp;at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1137)<br \/>\n\t&nbsp;&nbsp; &nbsp;at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:953)<br \/>\n\t&nbsp;&nbsp; &nbsp;at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:933)<br \/>\n\t&nbsp;&nbsp; &nbsp;at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:923)<br \/>\n\t&nbsp;&nbsp; &nbsp;at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:100)<br \/>\n\t&nbsp;&nbsp; &nbsp;at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)<br \/>\n\t&nbsp;&nbsp; &nbsp;at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386)<br \/>\n\t&nbsp;&nbsp; &nbsp;at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:87)<br \/>\n\t&nbsp;&nbsp; &nbsp;&#8230; 100 common frames omitted\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"druid \u83b7\u53d6\u8fde\u63a5\u8d85\u65f6\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1g0nbgefm3lj20iz08876l.jpg\" style=\"width: 683px;height: 296px\" \/>\n<\/p>\n<p>\n\t\u6839\u636e GetConnectionTimeoutException \u8fd9\u4e2a\u5f02\u5e38\u7684\u63d0\u793a\uff0c\u6211\u4eec\u4f1a\u53d1\u73b0\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u4e2d\u6709 5 \u4e2a\u5b58\u6d3b\u7684\u8fde\u63a5\uff0c\u6c60\u5b50\u9650\u5236\u5728\u6700\u5927\u8fde\u63a5\u4e3a 5 \u4e2a\u3002\n<\/p>\n<p>\n\t\u5f53\u5e76\u53d1\u6bd4\u8f83\u591a\u7684\u65f6\u5019\uff0c\u4ece\u6c60\u5b50\u91cc\u83b7\u53d6\u65b0\u7684\u8fde\u63a5\uff0c\u7b49\u5f85\u4e86 wait millis 60365 \u8fd9\u4e48\u4e45\u90fd\u8fd8\u6ca1\u6709\u83b7\u5f97\u8fde\u63a5\uff0c\u4e8e\u662f\u53d1\u751f\u4e86\u8d85\u65f6\u5f02\u5e38\u3002\n<\/p>\n<p>\n\t\u57fa\u4e8e\u963f\u91cc Druid \u5b98\u7f51\u4e0a\u7684\u4fe1\u606f\u548c\u6700\u540e\u51fa\u73b0\u7684 ava.lang.OutOfMemoryError: Java heap space \u5f02\u5e38\u3002\u53ef\u4ee5\u65ad\u5b9a\u662f\u8fde\u63a5\u6c60\u8fd9\u4e00\u5757\u914d\u7f6e\u7684\u4e0d\u5408\u7406\u3002\n<\/p>\n<p>\n\t\u6700\u7ec8\u6211\u628a\u8fde\u63a5\u6c60\u6700\u5927\u8fde\u63a5\u914d\u7f6e\u5230 100\uff0c\u518d\u4e5f\u6ca1\u6709\u53d1\u751f\u8fc7\u7c7b\u4f3c\u7684\u95ee\u9898\u4e86\u3002\n<\/p>\n<p>\n\t\u5f53\u7136\u5982\u679c\u4f60\u7684 Druid \u7248\u672c\u8fc7\u5c0f\uff0c\u5efa\u8bae\u4f60\u5347\u7ea7\u4e00\u4e0b\u3002\u56e0\u4e3a&nbsp;Druid \u7684\u4e00\u4e9b\u7248\u672c\u6709\u91cd\u5927 BUG\uff0c\u4f1a\u53d1\u751f\u5185\u5b58\u6cc4\u9732\u548c\u548c\u8fde\u63a5\u6c60\u83b7\u53d6\u8fde\u63a5\u8d85\u65f6\u95ee\u9898\u3002\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/github.com\/alibaba\/druid\/wiki\/\u8fde\u63a5\u6cc4\u6f0f\u76d1\u6d4b\" name=\"\u8fde\u63a5\u6cc4\u6f0f\u76d1\u6d4b\" target=\"_blank\" title=\"\u8fde\u63a5\u6cc4\u6f0f\u76d1\u6d4b\">https:\/\/github.com\/alibaba\/druid\/wiki\/\u8fde\u63a5\u6cc4\u6f0f\u76d1\u6d4b<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/github.com\/alibaba\/druid\/issues\/2130\" name=\"Druid \u83b7\u53d6\u8fde\u63a5\u8d85\u65f6\" target=\"_blank\" title=\"Druid \u83b7\u53d6\u8fde\u63a5\u8d85\u65f6\">https:\/\/github.com\/alibaba\/druid\/issues\/2130<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3940\">\u963f\u91cc Druid \u62a5 wait millis 74583, active 5, maxActive 5 \u95ee\u9898\u89e3\u51b3\u529e\u6cd5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\uff0c\u6211\u4eec\u90e8\u95e8\u5728\u5bf9\u5373\u5c06\u65b0\u4e0a\u7ebf\u7684\u4e00\u4e2a\u65b0\u529f\u80fd\u505a\u538b\u6d4b\uff0c\u65b0\u6765\u7684\u540c\u4e8b\u641e\u4e86\u4e00\u5929\uff0c\u5bf9 Jmeter \u914d\u7f6e 100 \u7684\u5e76\u53d1\uff0c\u4e00 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[301,169,83,601,883],"class_list":["post-3940","post","type-post","status-publish","format-standard","hentry","category-java","tag-druid","tag-jmeter","tag-mysql","tag-outofmemoryerror","tag-883"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3940"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3940\/revisions"}],"predecessor-version":[{"id":3941,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3940\/revisions\/3941"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}