{"id":39958,"date":"2025-05-26T20:31:15","date_gmt":"2025-05-26T12:31:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39958.html"},"modified":"2025-05-26T20:31:15","modified_gmt":"2025-05-26T12:31:15","slug":"horain%e4%ba%91-%e6%9c%8d%e5%8a%a1%e5%99%a8docker-oom-rss%e9%ab%98%e9%97%ae%e9%a2%98%e6%8e%92%e6%9f%a5%e6%80%9d%e8%b7%af","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39958.html","title":{"rendered":"HoRain\u4e91--\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def"},"content":{"rendered":"<\/p>\n<p style=\"text-align:center\">\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526123113-68345f119d7f4.jpg\" width=\"70\" \/><\/p>\n<p style=\"text-align:center\">&#x1f3ac; HoRain \u4e91\u5c0f\u52a9\u624b&#xff1a;\u4e2a\u4eba\u4e3b\u9875<\/p>\n<p style=\"text-align:center\">\u26fa\ufe0f\u751f\u6d3b\u7684\u7406\u60f3&#xff0c;\u5c31\u662f\u4e3a\u4e86\u7406\u60f3\u7684\u751f\u6d3b!<\/p>\n<hr \/>\n<h4 id=\"%E2%9B%B3%EF%B8%8F%20%E6%8E%A8%E8%8D%90\">\u26f3\ufe0f \u63a8\u8350<\/h4>\n<p>\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9&#xff0c;\u6027\u4ef7\u6bd4\u8d85\u9ad8&#xff0c;\u5927\u5185\u5b58\u8d85\u5212\u7b97&#xff01;\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u70b9\u51fb\u8df3\u8f6c\u5230\u7f51\u7ad9\u3002<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E2%9B%B3%EF%B8%8F%20%E6%8E%A8%E8%8D%90-toc\" style=\"margin-left:80px\">\u26f3\ufe0f \u63a8\u8350<\/p>\n<p id=\"1.%20%E5%AE%9E%E6%97%B6%E8%B5%84%E6%BA%90%E7%9B%91%E6%8E%A7-toc\" style=\"margin-left:80px\">1. \u5b9e\u65f6\u8d44\u6e90\u76d1\u63a7<\/p>\n<p id=\"2.%20%E5%AE%9A%E4%BD%8D%E9%97%AE%E9%A2%98%E5%AE%B9%E5%99%A8-toc\" style=\"margin-left:80px\">2. \u5b9a\u4f4d\u95ee\u9898\u5bb9\u5668<\/p>\n<p id=\"2.1%20%E6%9F%A5%E7%9C%8B%E5%AE%B9%E5%99%A8%E5%86%85%E5%AD%98%E4%BD%BF%E7%94%A8%E8%AF%A6%E6%83%85-toc\" style=\"margin-left:120px\">2.1 \u67e5\u770b\u5bb9\u5668\u5185\u5b58\u4f7f\u7528\u8be6\u60c5<\/p>\n<p id=\"2.2%20%E6%A3%80%E6%9F%A5OOM%E4%BA%8B%E4%BB%B6%E8%AE%B0%E5%BD%95-toc\" style=\"margin-left:120px\">2.2 \u68c0\u67e5OOM\u4e8b\u4ef6\u8bb0\u5f55<\/p>\n<p id=\"3.%20%E5%AE%B9%E5%99%A8%E5%86%85%E8%BF%9B%E7%A8%8B%E5%88%86%E6%9E%90-toc\" style=\"margin-left:80px\">3. \u5bb9\u5668\u5185\u8fdb\u7a0b\u5206\u6790<\/p>\n<p id=\"3.1%20%E8%BF%9B%E5%85%A5%E5%AE%B9%E5%99%A8%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B-toc\" style=\"margin-left:120px\">3.1 \u8fdb\u5165\u5bb9\u5668\u67e5\u770b\u8fdb\u7a0b<\/p>\n<p id=\"3.2%20%E4%BD%BF%E7%94%A8nsenter%E7%9B%B4%E6%8E%A5%E5%88%86%E6%9E%90-toc\" style=\"margin-left:120px\">3.2 \u4f7f\u7528nsenter\u76f4\u63a5\u5206\u6790<\/p>\n<p id=\"4.%20%E9%AB%98%E7%BA%A7%E5%86%85%E5%AD%98%E5%88%86%E6%9E%90%E5%B7%A5%E5%85%B7-toc\" style=\"margin-left:80px\">4. \u9ad8\u7ea7\u5185\u5b58\u5206\u6790\u5de5\u5177<\/p>\n<p id=\"4.1%20%E4%BD%BF%E7%94%A8ebpf%E5%B7%A5%E5%85%B7-toc\" style=\"margin-left:120px\">4.1 \u4f7f\u7528ebpf\u5de5\u5177<\/p>\n<p id=\"4.2%20Java%E5%BA%94%E7%94%A8%E4%B8%93%E9%A1%B9%E6%A3%80%E6%9F%A5-toc\" style=\"margin-left:120px\">4.2 Java\u5e94\u7528\u4e13\u9879\u68c0\u67e5<\/p>\n<p id=\"5.%20%E9%85%8D%E7%BD%AE%E4%BC%98%E5%8C%96%E5%BB%BA%E8%AE%AE-toc\" style=\"margin-left:80px\">5. \u914d\u7f6e\u4f18\u5316\u5efa\u8bae<\/p>\n<p id=\"5.1%20%E5%86%85%E5%AD%98%E9%99%90%E5%88%B6%E7%AD%96%E7%95%A5-toc\" style=\"margin-left:120px\">5.1 \u5185\u5b58\u9650\u5236\u7b56\u7565<\/p>\n<p id=\"5.2%20%E5%BA%94%E7%94%A8%E5%B1%82%E4%BC%98%E5%8C%96-toc\" style=\"margin-left:120px\">5.2 \u5e94\u7528\u5c42\u4f18\u5316<\/p>\n<p id=\"6.%20%E7%9B%91%E6%8E%A7%E6%96%B9%E6%A1%88%E9%83%A8%E7%BD%B2-toc\" style=\"margin-left:80px\">6. \u76d1\u63a7\u65b9\u6848\u90e8\u7f72<\/p>\n<p id=\"7.%20%E5%85%B8%E5%9E%8B%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86%E6%B5%81%E7%A8%8B-toc\" style=\"margin-left:80px\">7. \u5178\u578b\u95ee\u9898\u5904\u7406\u6d41\u7a0b<\/p>\n<p id=\"8.%20%E5%86%85%E6%A0%B8%E5%8F%82%E6%95%B0%E8%B0%83%E4%BC%98-toc\" style=\"margin-left:80px\">8. \u5185\u6838\u53c2\u6570\u8c03\u4f18<\/p>\n<hr id=\"hr-toc\" \/>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"540\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526123114-68345f123c677.png\" width=\"960\" \/><\/p>\n<p>\u00a0 <\/p>\n<hr \/>\n<h4 id=\"1.%20%E5%AE%9E%E6%97%B6%E8%B5%84%E6%BA%90%E7%9B%91%E6%8E%A7\">1. \u5b9e\u65f6\u8d44\u6e90\u76d1\u63a7<\/h4>\n<p># \u67e5\u770b\u6240\u6709\u5bb9\u5668\u5b9e\u65f6\u8d44\u6e90\u5360\u7528<br \/>\ndocker stats &#8211;no-stream &#8211;format &#034;table {{.Name}}\\\\t{{.CPUPerc}}\\\\t{{.MemUsage}}\\\\t{{.MemPerc}}&#034;<\/p>\n<p># \u663e\u793a\u5bb9\u5668\u5185\u5b58\u9650\u5236<br \/>\ndocker inspect &#8211;format&#061;&#039;{{.Name}} {{.HostConfig.Memory}}&#039; $(docker ps -q)<\/p>\n<hr \/>\n<h4 id=\"2.%20%E5%AE%9A%E4%BD%8D%E9%97%AE%E9%A2%98%E5%AE%B9%E5%99%A8\">2. \u5b9a\u4f4d\u95ee\u9898\u5bb9\u5668<\/h4>\n<h5 id=\"2.1%20%E6%9F%A5%E7%9C%8B%E5%AE%B9%E5%99%A8%E5%86%85%E5%AD%98%E4%BD%BF%E7%94%A8%E8%AF%A6%E6%83%85\">2.1 \u67e5\u770b\u5bb9\u5668\u5185\u5b58\u4f7f\u7528\u8be6\u60c5<\/h5>\n<p># \u83b7\u53d6\u5bb9\u5668\u5185\u5b58\u8be6\u60c5&#xff08;\u9700cgroup\u652f\u6301&#xff09;<br \/>\ncat \/sys\/fs\/cgroup\/memory\/docker\/&lt;container-id&gt;\/memory.stat<\/p>\n<p>\u5173\u6ce8\u5173\u952e\u6307\u6807&#xff1a;<\/p>\n<p>rss # \u7269\u7406\u5185\u5b58\u5360\u7528<br \/>\nswap # \u4ea4\u6362\u5206\u533a\u4f7f\u7528<br \/>\ncache # \u9875\u9762\u7f13\u5b58<br \/>\nhierarchical_memory_limit # \u5185\u5b58\u9650\u5236\u503c<br \/>\noom # OOM\u53d1\u751f\u6b21\u6570<\/p>\n<h5 id=\"2.2%20%E6%A3%80%E6%9F%A5OOM%E4%BA%8B%E4%BB%B6%E8%AE%B0%E5%BD%95\">2.2 \u68c0\u67e5OOM\u4e8b\u4ef6\u8bb0\u5f55<\/h5>\n<p># \u67e5\u770b\u5185\u6838\u65e5\u5fd7<br \/>\ndmesg -T | grep -i &#039;killed process&#039;<\/p>\n<p># \u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7<br \/>\njournalctl -k &#8211;since &#034;1 hour ago&#034; | grep -E &#039;oom|kill&#039;<\/p>\n<hr \/>\n<h4 id=\"3.%20%E5%AE%B9%E5%99%A8%E5%86%85%E8%BF%9B%E7%A8%8B%E5%88%86%E6%9E%90\">3. \u5bb9\u5668\u5185\u8fdb\u7a0b\u5206\u6790<\/h4>\n<h5 id=\"3.1%20%E8%BF%9B%E5%85%A5%E5%AE%B9%E5%99%A8%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B\">3.1 \u8fdb\u5165\u5bb9\u5668\u67e5\u770b\u8fdb\u7a0b<\/h5>\n<p>docker exec -it &lt;container-name&gt; sh<\/p>\n<p># \u5b89\u88c5procps&#xff08;\u5982\u5bb9\u5668\u65e0top\u547d\u4ee4&#xff09;<br \/>\napt-get update &amp;&amp; apt-get install procps<\/p>\n<p># \u67e5\u770b\u8fdb\u7a0b\u5185\u5b58\u6392\u884c<br \/>\nps -eo pid,rss,cmd &#8211;sort -rss | head -n 10<\/p>\n<h5 id=\"3.2%20%E4%BD%BF%E7%94%A8nsenter%E7%9B%B4%E6%8E%A5%E5%88%86%E6%9E%90\">3.2 \u4f7f\u7528nsenter\u76f4\u63a5\u5206\u6790<\/h5>\n<p># \u83b7\u53d6\u5bb9\u5668PID<br \/>\ndocker inspect -f &#039;{{.State.Pid}}&#039; &lt;container-name&gt;<\/p>\n<p># \u8fdb\u5165\u5bb9\u5668\u547d\u540d\u7a7a\u95f4<br \/>\nnsenter -t &lt;pid&gt; -m -p<\/p>\n<p># \u73b0\u5728\u53ef\u8fd0\u884c\u5bbf\u4e3b\u673a\u7684top\/htop\u5de5\u5177<br \/>\nhtop &#8211;filter&#061;UID:&lt;container-user-id&gt;<\/p>\n<hr \/>\n<h4 id=\"4.%20%E9%AB%98%E7%BA%A7%E5%86%85%E5%AD%98%E5%88%86%E6%9E%90%E5%B7%A5%E5%85%B7\">4. \u9ad8\u7ea7\u5185\u5b58\u5206\u6790\u5de5\u5177<\/h4>\n<h5 id=\"4.1%20%E4%BD%BF%E7%94%A8ebpf%E5%B7%A5%E5%85%B7\">4.1 \u4f7f\u7528ebpf\u5de5\u5177<\/h5>\n<p># \u8ffd\u8e2a\u5bb9\u5668\u5185\u5b58\u5206\u914d&#xff08;\u9700Linux 4.9&#043;&#xff09;<br \/>\nsudo \/usr\/share\/bcc\/tools\/memleak -c &lt;container-id&gt;<\/p>\n<h5 id=\"4.2%20Java%E5%BA%94%E7%94%A8%E4%B8%93%E9%A1%B9%E6%A3%80%E6%9F%A5\">4.2 Java\u5e94\u7528\u4e13\u9879\u68c0\u67e5<\/h5>\n<p># \u68c0\u67e5JVM\u5806\u914d\u7f6e<br \/>\ndocker exec &lt;container&gt; jcmd 1 VM.flags | grep MaxHeapSize<\/p>\n<p># \u751f\u6210\u5806\u8f6c\u50a8<br \/>\ndocker exec &lt;container&gt; jmap -dump:live,format&#061;b,file&#061;\/tmp\/heap.hprof 1<br \/>\ndocker cp &lt;container&gt;:\/tmp\/heap.hprof .<\/p>\n<hr \/>\n<h4 id=\"5.%20%E9%85%8D%E7%BD%AE%E4%BC%98%E5%8C%96%E5%BB%BA%E8%AE%AE\">5. \u914d\u7f6e\u4f18\u5316\u5efa\u8bae<\/h4>\n<h5 id=\"5.1%20%E5%86%85%E5%AD%98%E9%99%90%E5%88%B6%E7%AD%96%E7%95%A5\">5.1 \u5185\u5b58\u9650\u5236\u7b56\u7565<\/h5>\n<p># \u542f\u52a8\u5bb9\u5668\u65f6\u8bbe\u7f6e\u786c\u9650\u5236<br \/>\ndocker run -m 2g &#8211;memory-swap 2g &#8211;oom-kill-disable&#061;false &#8230;<\/p>\n<p># \u8c03\u6574Swappiness&#xff08;0-100&#xff0c;\u8d8a\u4f4e\u8d8a\u5c11\u7528swap&#xff09;<br \/>\necho 10 &gt; \/sys\/fs\/cgroup\/memory\/docker\/&lt;container-id&gt;\/memory.swappiness<\/p>\n<h5 id=\"5.2%20%E5%BA%94%E7%94%A8%E5%B1%82%E4%BC%98%E5%8C%96\">5.2 \u5e94\u7528\u5c42\u4f18\u5316<\/h5>\n<table>\n<tr>\u5e94\u7528\u7c7b\u578b\u5173\u952e\u53c2\u6570\u63a8\u8350\u914d\u7f6e\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>Java<\/td>\n<td>-Xmx, -XX:MaxMetaspaceSize<\/td>\n<td>-Xmx1g -XX:MaxMetaspaceSize&#061;256m<\/td>\n<\/tr>\n<tr>\n<td>Node.js<\/td>\n<td>&#8211;max-old-space-size<\/td>\n<td>node &#8211;max-old-space-size&#061;2048<\/td>\n<\/tr>\n<tr>\n<td>Python<\/td>\n<td>\u5bf9\u8c61\u7f13\u5b58\u673a\u5236\u4f18\u5316<\/td>\n<td>\u4f7f\u7528__slots__\u51cf\u5c11\u5185\u5b58\u5360\u7528<\/td>\n<\/tr>\n<tr>\n<td>MySQL<\/td>\n<td>innodb_buffer_pool_size<\/td>\n<td>\u8bbe\u7f6e\u4e3a\u7269\u7406\u5185\u5b58\u768450-70%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4 id=\"6.%20%E7%9B%91%E6%8E%A7%E6%96%B9%E6%A1%88%E9%83%A8%E7%BD%B2\">6. \u76d1\u63a7\u65b9\u6848\u90e8\u7f72<\/h4>\n<p># Prometheus &#043; Grafana\u76d1\u63a7\u914d\u7f6e\u793a\u4f8b<br \/>\n&#8211; job_name: &#039;docker&#039;<br \/>\n  static_configs:<br \/>\n    &#8211; targets: [&#039;docker-host:9323&#039;]<br \/>\n  metrics_path: \/metrics<\/p>\n<p>\u5173\u952e\u76d1\u63a7\u6307\u6807&#xff1a;<\/p>\n<p>container_memory_usage_bytes{container_label_com_docker_compose_service&#061;&#034;app&#034;}<br \/>\ncontainer_memory_failcnt  # \u5185\u5b58\u8d85\u9650\u6b21\u6570<br \/>\ncontainer_memory_swap     # Swap\u4f7f\u7528\u91cf<\/p>\n<hr \/>\n<h4 id=\"7.%20%E5%85%B8%E5%9E%8B%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86%E6%B5%81%E7%A8%8B\">7. \u5178\u578b\u95ee\u9898\u5904\u7406\u6d41\u7a0b<\/h4>\n<li>\u7a81\u53d1OOM&#xff1a;\u68c0\u67e5\u5185\u5b58\u9650\u5236\u662f\u5426\u8fc7\u5c0f \u2192 \u5206\u6790\u5e94\u7528\u5185\u5b58\u9700\u6c42 \u2192 \u8c03\u6574-m\u53c2\u6570<\/li>\n<li>\u6e10\u8fdb\u5f0fRSS\u589e\u957f&#xff1a;\u4f7f\u7528valgrind\u68c0\u6d4b\u5185\u5b58\u6cc4\u6f0f \u2192 \u4f18\u5316\u4ee3\u7801\/\u914d\u7f6e<\/li>\n<li>Swap\u6ee5\u7528&#xff1a;\u964d\u4f4ememory.swappiness \u2192 \u589e\u52a0\u7269\u7406\u5185\u5b58 \u2192 \u4f18\u5316\u5e94\u7528\u7f13\u5b58\u673a\u5236<\/li>\n<li>\u7f13\u5b58\u5806\u79ef&#xff1a;\u8c03\u6574\u5e94\u7528\u7f13\u5b58\u7b56\u7565 \u2192 \u589e\u52a0\u5185\u5b58 \u2192 \u4f7f\u7528echo 3 &gt; \/proc\/sys\/vm\/drop_caches\u5b9a\u671f\u6e05\u7406<\/li>\n<hr \/>\n<h4 id=\"8.%20%E5%86%85%E6%A0%B8%E5%8F%82%E6%95%B0%E8%B0%83%E4%BC%98\">8. \u5185\u6838\u53c2\u6570\u8c03\u4f18<\/h4>\n<p># \u9632\u6b62\u7cfb\u7edf\u5185\u5b58\u8017\u5c3d&#xff08;\u5efa\u8bae\u503c&#xff1a;0-100&#xff09;<br \/>\nsysctl -w vm.overcommit_memory&#061;1<\/p>\n<p># \u8c03\u6574OOM Killer\u6743\u91cd&#xff08;-1000\u52301000&#xff0c;\u503c\u8d8a\u4f4e\u8d8a\u4e0d\u6613\u88ab\u6740&#xff09;<br \/>\necho -500 &gt; \/proc\/&lt;pid&gt;\/oom_score_adj<\/p>\n<hr \/>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u53ef\u7cfb\u7edf\u5316\u8bca\u65ad\u5185\u5b58\u95ee\u9898&#xff0c;\u5efa\u8bae\u7ed3\u5408\u76d1\u63a7\u7cfb\u7edf\u5efa\u7acb\u957f\u671f\u8d8b\u52bf\u89c2\u5bdf\u3002\u5bf9\u4e8e\u5173\u952e\u4e1a\u52a1\u5bb9\u5668&#xff0c;\u5efa\u8bae\u914d\u7f6e&#8211;oom-kill-disable\u65f6\u540c\u65f6\u8bbe\u7f6e\u5408\u7406\u7684-m\u9650\u5236\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526123114-68345f12920ce.gif\" \/><\/p>\n<p>\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650&#xff0c;\u5982\u6709\u7eb0\u6f0f&#xff0c;\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63&#xff01;&#x1f604;&#x1f604;&#x1f604;<\/p>\n<p>&#x1f498;&#x1f498;&#x1f498;\u5982\u679c\u89c9\u5f97\u8fd9\u7bc7\u6587\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd&#xff0c;\u4e5f\u8bf7\u7ed9\u4e2a\u70b9\u8d5e\u3001\u6536\u85cf\u4e0b\u5427&#xff0c;\u975e\u5e38\u611f\u8c22!&#x1f44d; &#x1f44d; &#x1f44d;<\/p>\n<p>&#x1f525;&#x1f525;&#x1f525;Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427&#xff01;&#x1f319;&#x1f319;&#x1f319;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb756\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\ud83d\udd25\ud83d\udd25\ud83d\udd25Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427\uff01\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u53ef\u7cfb\u7edf\u5316\u8bca\u65ad\u5185\u5b58\u95ee\u9898\uff0c\u5efa\u8bae\u7ed3\u5408\u76d1\u63a7\u7cfb\u7edf\u5efa\u7acb\u957f\u671f\u8d8b\u52bf\u89c2\u5bdf\u3002\u5bf9\u4e8e\u5173\u952e\u4e1a\u52a1\u5bb9\u5668\uff0c\u5efa\u8bae\u914d\u7f6e\u3002\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff0c\u5927\u5185\u5b58\u8d85\u5212\u7b97\uff01\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650\uff0c\u5982\u6709\u7eb0\u6f0f\uff0c\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63\uff01<\/p>\n","protected":false},"author":2,"featured_media":39955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[679,99,58],"topic":[],"class_list":["post-39958","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-cpu","tag-java","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HoRain\u4e91-\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/39958.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HoRain\u4e91-\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb756\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\ud83d\udd25\ud83d\udd25\ud83d\udd25Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427\uff01\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u53ef\u7cfb\u7edf\u5316\u8bca\u65ad\u5185\u5b58\u95ee\u9898\uff0c\u5efa\u8bae\u7ed3\u5408\u76d1\u63a7\u7cfb\u7edf\u5efa\u7acb\u957f\u671f\u8d8b\u52bf\u89c2\u5bdf\u3002\u5bf9\u4e8e\u5173\u952e\u4e1a\u52a1\u5bb9\u5668\uff0c\u5efa\u8bae\u914d\u7f6e\u3002\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff0c\u5927\u5185\u5b58\u8d85\u5212\u7b97\uff01\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650\uff0c\u5982\u6709\u7eb0\u6f0f\uff0c\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63\uff01\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39958.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-26T12:31:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526123113-68345f119d7f4.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39958.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39958.html\",\"name\":\"HoRain\u4e91-\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-26T12:31:15+00:00\",\"dateModified\":\"2025-05-26T12:31:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39958.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39958.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39958.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HoRain\u4e91--\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HoRain\u4e91-\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/39958.html","og_locale":"zh_CN","og_type":"article","og_title":"HoRain\u4e91-\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb756\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\ud83d\udd25\ud83d\udd25\ud83d\udd25Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427\uff01\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u53ef\u7cfb\u7edf\u5316\u8bca\u65ad\u5185\u5b58\u95ee\u9898\uff0c\u5efa\u8bae\u7ed3\u5408\u76d1\u63a7\u7cfb\u7edf\u5efa\u7acb\u957f\u671f\u8d8b\u52bf\u89c2\u5bdf\u3002\u5bf9\u4e8e\u5173\u952e\u4e1a\u52a1\u5bb9\u5668\uff0c\u5efa\u8bae\u914d\u7f6e\u3002\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff0c\u5927\u5185\u5b58\u8d85\u5212\u7b97\uff01\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650\uff0c\u5982\u6709\u7eb0\u6f0f\uff0c\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63\uff01","og_url":"https:\/\/www.wsisp.com\/helps\/39958.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-26T12:31:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526123113-68345f119d7f4.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39958.html","url":"https:\/\/www.wsisp.com\/helps\/39958.html","name":"HoRain\u4e91-\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-26T12:31:15+00:00","dateModified":"2025-05-26T12:31:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39958.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39958.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39958.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HoRain\u4e91--\u670d\u52a1\u5668Docker OOM RSS\u9ad8\u95ee\u9898\u6392\u67e5\u601d\u8def"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=39958"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39958\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/39955"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39958"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}