{"id":92,"date":"2005-12-13T00:54:58","date_gmt":"2005-12-12T16:54:58","guid":{"rendered":"http:\/\/broso.twbbs.org\/blojsom\/blog\/default\/ITTech\/Java\/?permalink=%E5%B0%8F%E5%BF%83%E5%8B%BF%E8%A7%B8_BEA_WLS_8_1_sp3_OOM_%E5%9C%B0%E9%9B%B7.html"},"modified":"2005-12-13T00:54:58","modified_gmt":"2005-12-12T16:54:58","slug":"%e5%b0%8f%e5%bf%83%e5%8b%bf%e8%a7%b8-bea-wls-8-1-sp3-oom-%e5%9c%b0%e9%9b%b7","status":"publish","type":"post","link":"https:\/\/cychien.tw\/wordpress\/2005\/12\/13\/%e5%b0%8f%e5%bf%83%e5%8b%bf%e8%a7%b8-bea-wls-8-1-sp3-oom-%e5%9c%b0%e9%9b%b7\/","title":{"rendered":"\u5c0f\u5fc3\u52ff\u89f8 BEA WLS 8.1 sp3 OOM \u5730\u96f7"},"content":{"rendered":"<p>\u7d93\u904e\u4e00\u6bb5\u6642\u9593\u7684\u58d3\u529b\u6e2c\u8a66\u4ee5\u53ca\u5be6\u9a57\u8b49\u660e\uff0c\u524d\u7aef AP \u900f\u904e Bea WebLogic 8.1 sp3 \u7684 Connection Pool \u53d6\u5f97 JDBC Connection<more\/>\uff0c\u9019\u7a2e\u65b9\u5f0f\u4f86\u5b58\u53d6 DB \u6642\uff0c\u6703\u6709 Memory Leak \u7684\u73fe\u8c61\u3002\u9019\u7a2e\u60c5\u5f62\u767c\u751f\u5728 javax.sql.DataSource.getConnection \u4e4b\u5f8c\uff0c\u53d6\u5f97\u4e4b Connection \u7d50\u675f\u9023\u7dda\u5f8c\uff0c\u537b\u7121\u6cd5\u5c07\u4f54\u7528\u4e4b\u8a18\u61b6\u9ad4\u5168\u90e8\u91cb\u653e\uff0c\u65bc\u662f\u6642\u9593\u4e00\u4e45\uff0cJVM Heap Memory \u88ab\u5403\u5149\uff0c\u4fbf\u7522\u751f\u4e86 java.lang.OutOfMemoryError\u3002<\/p>\n<p\/>\n<p>\u70ba\u4e86\u8b49\u660e\u662f Bea \u7684\u554f\u984c\uff0c\u6211\u7279\u5730\u6539\u5beb\u7a0b\u5f0f\uff0c\u900f\u904e Jakarta Commons DBCP \u5143\u4ef6\u4f86\u53d6\u5f97 JDBC Connection\uff0c\u4ee5\u4fbf\u8207\u539f\u5148\u7a0b\u5f0f\u900f\u904e Bea ConnPool \u53d6\u5f97\u9023\u7dda\u7684\u65b9\u5f0f\u4f5c\u70ba\u5c0d\u7167\u7d44\u3002<\/p>\n<p\/>\n<p>\u4e0b\u9762\u662f\u4f7f\u7528 Quest JProbe Memory Debugger \u5206\u5225\u53d6\u5f97\u7684 DBCP \u8207 WLS ConnPool \u7684 Heap Memory \u66f2\u7dda\u5716\uff1a<\/p>\n<p\/>\n\u6e2c\u8a66\u500b\u6848\u70ba\u6301\u7e8c\u767c\u9001 Online \u7c21\u8a0a\uff0c\u7d93\u904e\u4e00\u500b\u5c0f\u6642\u5f8c\u89c0\u5bdf Heap Memory \u66f2\u7dda\u3002<br \/>\nOnlineService \u4f7f\u7528 WLS Connection Pool<br \/>\n<img decoding=\"async\" data-src=\"\/blojsom\/resources\/default\/20051212_OOM\/OnlineService_WLSConnPool.jpg\" alt=\"OnlineService with WLS Connection Pool\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p\/>\n\u53ef\u4ee5\u770b\u5f97\u51fa\u4f86 Heap memory \u8017\u7528\u91cf\u9010\u6f38\u7684\u4e0a\u5347<\/p>\n<p\/>\n\u518d\u4f86\u770b\u770b OnlineService \u4f7f\u7528 Jakarta DBCP \u7684\u60c5\u5f62<br \/>\n<img decoding=\"async\" data-src=\"\/blojsom\/resources\/default\/20051212_OOM\/OnlineService_DBCP.jpg\" alt=\"OnlineService with Jakarta DBCP\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p\/>\n\u770b\u5f97\u51fa\u4f86 Heap Memory \u7d93\u904e JVM GC \u7686\u53ef\u4ee5\u6b63\u78ba\u7684\u91cb\u653e\u51fa\u4f86<\/p>\n<p\/>\n<p>\u518d\u4f86\u770b\u770b BatchService \u7684\u60c5\u5f62\uff0c\u6e2c\u8a66\u500b\u6848\u662f\u5169\u500b\u6279\u6b21 Job \u5404\u540c\u6642\u8655\u7406 10 \u842c\u7b46\u7c21\u8a0a<br \/>BatchService \u4f7f\u7528 WLS Connection Pool<br \/>\n<img decoding=\"async\" data-src=\"\/blojsom\/resources\/default\/20051212_OOM\/BatchService_WLSConnPool.jpg\" alt=\"BatchService with WLS Connection Pool\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p\/>\nHeap \u8017\u7528\u91cf\u4e00\u4e0b\u5b50\u5c31\u98c6\u5230 80MB\uff0c\u4e4b\u5f8c\u6301\u7e8c\u4e0a\u5347\uff0c\u76f4\u5230 12x MB \u5f8c\uff0cJVM \u505a\u4e86\u4e00\u6b21 Full GC\uff0c\u8017\u7528\u91cf\u4e0b\u964d\u81f3 50MB\uff0c\u4f46\u99ac\u4e0a\u53c8\u98c6\u5230 12x MB \u5f8c\uff0cOOM \u5c31\u767c\u751f\u4e86\uff0c\u5169\u500b Job \u90fd\u7121\u6cd5\u5b8c\u6210\u3002<\/p>\n<p\/>\nBatchService \u63db\u6210\u4f7f\u7528 Jakarta DBCP \u7684\u60c5\u5f62\u53c8\u5982\u4f55\u5462?<br \/>\n<img decoding=\"async\" data-src=\"\/blojsom\/resources\/default\/20051212_OOM\/BatchService_DBCP.jpg\" alt=\"BatchService with Jakarta DBCP\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p\/>\n\u8ddf OnlineService \u4e00\u6a23\u5e73\u7a69\uff0c\u81f3\u6b64\u6211\u5c31\u78ba\u5b9a WLS 8.1 sp3 \u5167\u90e8\u61c9\u8a72\u6709 Memory Leak \u7684\u554f\u984c\u5b58\u5728\uff0c\u65bc\u662f\u6c42\u52a9 BEA\u3002BEA Consultant \u624d\u7d66\u4e86\u4e00\u5e16\u5927\u88dc\u4e38\uff0c\u8981\u6c42\u4e0a Patch \u5f8c\u518d\u89c0\u5bdf\u770b\u770b\u3002<\/p>\n<p\/>\n<p>\u4e0a\u4e86 Patch \u4e4b\u5f8c\uff0c\u679c\u7136\u66f2\u7dda\u5c31\u8b8a\u5f97\u5927\u4e0d\u76f8\u540c<br \/>\nOnlineService \u4f7f\u7528 WLS Connection Pool + WLS8.1 sp3 patch<br \/>\n<img decoding=\"async\" data-src=\"\/blojsom\/resources\/default\/20051212_OOM\/Online_WLSPatch.jpg\" alt=\"OnlineService with WLS Connection Pool + WLS 8.1 sp3 patch\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p\/>\n<p>BatchService \u4f7f\u7528 WLS Connection Pool + WLS8.1 sp3 patch<br \/>\n<img decoding=\"async\" data-src=\"\/blojsom\/resources\/default\/20051212_OOM\/Batch_WLSPatch.jpg\" alt=\"BatchService with WLS Connection Pool + WLS 8.1 sp3 patch\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p\/>\nBatchService \u63db\u4e0a Patch \u5f8c\uff0c\u5169\u500b\u6279\u6b21 Job \u5404\u540c\u6642\u8655\u7406 10 \u842c\u7b46\u7c21\u8a0a\u5df2\u53ef\u6b63\u78ba\u8655\u7406\u5b8c\u7562\u6c92\u554f\u984c\u3002<\/p>\n<p\/>\n<p>\u6240\u4ee5\u5982\u679c\u4f7f\u7528 WLS 8.1 sp3 \u7684\u4eba\uff0c\u8acb\u5c0f\u5fc3\u52ff\u89f8 OOM \u7684\u5730\u96f7<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d93\u904e\u4e00\u6bb5\u6642\u9593\u7684\u58d3\u529b\u6e2c\u8a66\u4ee5\u53ca\u5be6\u9a57\u8b49\u660e\uff0c\u524d\u7aef AP \u900f\u904e Bea WebLogic 8.1 sp3 \u7684 Conne [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-ittechjava"],"_links":{"self":[{"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:attachment":[{"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cychien.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}