{"id":119726,"date":"2026-10-30T08:19:00","date_gmt":"2026-10-30T00:19:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/119726.html"},"modified":"2026-10-30T08:19:00","modified_gmt":"2026-10-30T00:19:00","slug":"10%e3%80%81%e3%80%90mod%e5%bc%80%e5%8f%91%e3%80%91%e3%80%90%e9%aa%91%e7%a0%8d2%e3%80%91%e8%bf%90%e8%a1%8c%e5%86%85%e5%ad%98%ef%bc%9a%e4%b8%89%e4%b8%aa-bat-%e8%84%9a%e6%9c%ac%e7%9a%84%e5%88%86%e5%b7%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/119726.html","title":{"rendered":"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f"},"content":{"rendered":"<p>\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664<\/p>\n<h2>10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f<\/h2>\n<h2>\u80cc\u666f<\/h2>\n<p>\u4e0a\u7bc7 \u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;OOM \u73b0\u573a\u4e0e\u865a\u62df\u5185\u5b58\u672f\u8bed \u628a\u73b0\u573a\u548c\u672f\u8bed\u8bb2\u6e05\u695a\u4e86&#xff1a;OOM&#xff08;Out of Memory&#xff0c;\u5185\u5b58\u8017\u5c3d&#xff09;\u7684\u76f4\u63a5\u539f\u56e0\u662f\u63d0\u4ea4\u91cf\u8017\u5c3d&#xff0c;\u4e0d\u662f\u67d0\u4e2a MOD&#xff08;Modification&#xff0c;\u6a21\u7ec4&#xff09;\u629b\u4e86 C# \u5f02\u5e38&#xff1b;16GB \u5185\u5b58\u52a0\u7ea6 13GB \u9875\u9762\u6587\u4ef6&#xff0c;\u63d0\u4ea4\u9650\u5236\u53ea\u6709\u7ea6 30GB&#xff1b;\u6e38\u620f\u7ea6 11GB\u3001Steam \u4e0e steamwebhelper \u7ea6 4.5GB&#xff0c;\u518d\u53e0\u52a0\u5176\u4ed6\u8fdb\u7a0b&#xff0c;\u9875\u9762\u6587\u4ef6\u53ea\u5269 270MB&#xff1b;\u6b64\u65f6\u7533\u8bf7 2.3MB \u4e5f\u4f1a\u5931\u8d25&#xff0c;0xC0000005 \u53ea\u662f\u5931\u8d25\u540e\u7684\u515c\u5e95\u5d29\u6e83\u3002<\/p>\n<p>\u5224\u65ad\u6e05\u695a\u4e4b\u540e&#xff0c;\u5269\u4e0b\u7684\u662f\u628a\u201c\u6269\u9875\u9762\u6587\u4ef6\u201d\u53d8\u6210\u53ef\u91cd\u590d\u6267\u884c\u7684\u64cd\u4f5c\u3002\u672c\u7bc7\u7ed9\u51fa\u4e09\u4e2a bat \u811a\u672c&#xff1a;\u4e00\u4e2a\u5199\u5165\u914d\u7f6e&#xff0c;\u4e00\u4e2a\u9a8c\u8bc1\u7ed3\u679c&#xff0c;\u4e00\u4e2a\u8d1f\u8d23\u56de\u6eda\u3002\u811a\u672c\u5168\u6587\u653e\u5728\u672c\u7bc7&#xff0c;\u8bed\u6cd5\u7ec6\u8282\u7559\u5230\u4e0b\u4e00\u7bc7\u62c6\u89e3\u3002<\/p>\n<hr \/>\n<h2>\u9a91\u780d2<\/h2>\n<h3>&#x1f9e9; \u4e09\u4e2a\u811a\u672c\u7684\u5206\u5de5<\/h3>\n<table>\n<tr>\u7ef4\u5ea6\u7ed3\u679c\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">pagefile-apply.bat<\/td>\n<td align=\"left\">\u5173\u95ed\u81ea\u52a8\u7ba1\u7406&#xff0c;\u5199\u5165 C \u76d8 8GB\u3001D \u76d8 32GB<\/td>\n<td align=\"left\">\u9996\u6b21\u4fee\u590d&#xff1b;\u7ba1\u7406\u5458\u8fd0\u884c&#xff0c;\u4e4b\u540e\u91cd\u542f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">pagefile-check.bat<\/td>\n<td align=\"left\">\u68c0\u67e5\u914d\u7f6e\u3001\u5b9e\u9645\u5206\u914d\u3001\u63d0\u4ea4\u4f59\u91cf\u3001\u63d0\u4ea4\u91cf\u6700\u9ad8\u7684\u8fdb\u7a0b\u548c 2004 \u4e8b\u4ef6<\/td>\n<td align=\"left\">\u91cd\u542f\u540e\u9a8c\u8bc1&#xff1b;\u666e\u901a\u6743\u9650\u5373\u53ef<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">pagefile-restore.bat<\/td>\n<td align=\"left\">\u6062\u590d\u81ea\u52a8\u7ba1\u7406&#xff0c;\u5220\u9664\u81ea\u5b9a\u4e49\u9875\u9762\u6587\u4ef6\u914d\u7f6e<\/td>\n<td align=\"left\">\u9700\u8981\u56de\u6eda&#xff1b;\u7ba1\u7406\u5458\u8fd0\u884c&#xff0c;\u4e4b\u540e\u91cd\u542f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e09\u4e2a\u811a\u672c\u7684\u5206\u5de5\u662f\u201c\u5199\u5165 \u2192 \u91cd\u542f \u2192 \u9a8c\u8bc1\u201d&#xff0c;\u56de\u6eda\u662f\u72ec\u7acb\u8def\u5f84\u3002\u4e0d\u8981\u628a restore \u548c apply \u8fde\u7eed\u6267\u884c&#xff0c;\u5426\u5219\u4f1a\u628a\u521a\u5199\u5165\u7684\u914d\u7f6e\u53c8\u6e05\u6389\u3002<\/p>\n<hr \/>\n<h3>&#x1f6e0;\ufe0f pagefile-apply.bat<\/h3>\n<p>apply \u53ea\u505a\u4e09\u4ef6\u4e8b&#xff1a;\u786e\u8ba4\u7ba1\u7406\u5458\u6743\u9650\u3001\u5173\u95ed\u81ea\u52a8\u7ba1\u7406\u5e76\u5199\u5165 PagingFiles\u3001\u6253\u5370\u4fee\u6539\u524d\u540e\u7684\u914d\u7f6e\u3002\u811a\u672c\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&#064;echo off<br \/>\nsetlocal<br \/>\nnet session &gt;nul 2&gt;&amp;1<br \/>\nif errorlevel 1 (<br \/>\n  echo [ERROR] Please run as Administrator.<br \/>\n  pause<br \/>\n  exit \/b 1<br \/>\n)<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  BEFORE<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;Get-CimInstance Win32_ComputerSystem | Select-Object AutomaticManagedPagefile | Format-List; Get-CimInstance Win32_PageFileSetting | Select-Object Name,InitialSize,MaximumSize | Format-Table -AutoSize; $mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; &#039;PagingFiles registry:&#039;; (Get-ItemProperty -Path $mm -Name PagingFiles).PagingFiles&#034;<\/p>\n<p>echo.<br \/>\necho Applying C: 8192 MB and D: 32768 MB via PagingFiles registry &#8230;<br \/>\npowershell -NoProfile -ExecutionPolicy Bypass -Command &#034;$ErrorActionPreference&#061;&#039;Stop&#039;; $mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; $cs&#061;Get-CimInstance Win32_ComputerSystem; if($cs.AutomaticManagedPagefile){ $cs | Set-CimInstance -Property &#064;{AutomaticManagedPagefile&#061;$false} }; try { Get-CimInstance Win32_PageFileSetting | Remove-CimInstance -ErrorAction Stop } catch { }; Set-ItemProperty -Path $mm -Name PagingFiles -Value &#064;(&#039;C:\\\\pagefile.sys 8192 8192&#039;,&#039;D:\\\\pagefile.sys 32768 32768&#039;) -Type MultiString; &#039;Applied.&#039;&#034;<\/p>\n<p>echo.<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  AFTER (effective after reboot)<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;$mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; Get-CimInstance Win32_ComputerSystem | Select-Object AutomaticManagedPagefile | Format-List; &#039;PagingFiles registry:&#039;; (Get-ItemProperty -Path $mm -Name PagingFiles).PagingFiles; &#039;Win32_PageFileSetting (may lag until reboot):&#039;; Get-CimInstance Win32_PageFileSetting | Select-Object Name,InitialSize,MaximumSize | Format-Table -AutoSize&#034;<\/p>\n<p>echo.<br \/>\necho DONE. Reboot Windows, then run pagefile-check.bat.<br \/>\npause<\/p>\n<p>\u811a\u672c\u6267\u884c\u540e&#xff0c;AFTER \u6bb5\u5e94\u770b\u5230 AutomaticManagedPagefile \u4e3a False&#xff0c;PagingFiles \u4e3a\u4e24\u884c&#xff1a;<\/p>\n<p>C:\\\\pagefile.sys 8192 8192<br \/>\nD:\\\\pagefile.sys 32768 32768<\/p>\n<p>\u8fd9\u91cc\u7684 8192 \u548c 32768 \u5355\u4f4d\u662f MB&#xff0c;\u4e24\u4e2a\u6570\u5b57\u5206\u522b\u662f\u521d\u59cb\u5927\u5c0f\u548c\u6700\u5927\u5927\u5c0f\u3002C: \u4fdd\u7559 8GB \u662f\u4e3a\u4e86\u517c\u987e\u7cfb\u7edf\u76d8\u7684\u5185\u6838\u8f6c\u50a8\u9700\u6c42&#xff1b;D: \u653e 32GB \u662f\u4e3a\u4e86\u628a\u63d0\u4ea4\u9650\u5236\u62ac\u9ad8\u3002\u4e24\u4e2a\u503c\u90fd\u4e0d\u662f\u56fa\u5b9a\u516c\u5f0f&#xff0c;\u800c\u662f\u6309\u672c\u6b21\u5cf0\u503c\u548c\u78c1\u76d8\u7a7a\u95f4\u53d6\u7684\u6298\u4e2d\u3002<\/p>\n<p>\u914d\u7f6e\u5199\u5165\u6ce8\u518c\u8868\u540e\u4e0d\u4f1a\u7acb\u523b\u6539\u53d8\u78c1\u76d8\u4e0a\u7684 pagefile.sys\u3002\u5fc5\u987b\u91cd\u542f Windows&#xff0c;\u7cfb\u7edf\u624d\u4f1a\u6309\u65b0\u914d\u7f6e\u521b\u5efa\u6216\u8c03\u6574\u9875\u9762\u6587\u4ef6\u3002\u4e0d\u8981\u5728\u5199\u5165\u540e\u76f4\u63a5\u770b\u4efb\u52a1\u7ba1\u7406\u5668\u91cc\u7684\u201c\u63d0\u4ea4\u5927\u5c0f\u201d\u5c31\u5224\u65ad\u5931\u8d25&#xff1b;\u91cd\u542f\u524d\u7684\u6570\u5b57\u4ecd\u7136\u662f\u65e7\u914d\u7f6e\u3002<\/p>\n<hr \/>\n<h3>&#x1f50d; pagefile-check.bat<\/h3>\n<p>check \u8d1f\u8d23\u56de\u7b54\u4e09\u4e2a\u95ee\u9898&#xff1a;\u914d\u7f6e\u5199\u5bf9\u4e86\u5417\u3001\u7cfb\u7edf\u5b9e\u9645\u5206\u914d\u4e86\u5417\u3001\u5f53\u524d\u63d0\u4ea4\u4f59\u91cf\u591f\u4e0d\u591f\u3002\u811a\u672c\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&#064;echo off<br \/>\nsetlocal<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  Configuration<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;$mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; $cs&#061;Get-CimInstance Win32_ComputerSystem; &#039;AutomaticManagedPagefile &#061; &#039; &#043; $cs.AutomaticManagedPagefile; &#039;PagingFiles registry:&#039;; (Get-ItemProperty -Path $mm -Name PagingFiles).PagingFiles; &#039;Win32_PageFileSetting:&#039;; Get-CimInstance Win32_PageFileSetting | Select-Object Name,InitialSize,MaximumSize | Format-Table -AutoSize&#034;<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  Validation<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;$s&#061;Get-CimInstance Win32_PageFileSetting; $c&#061;$s | Where-Object {$_.Name -eq &#039;C:\\\\pagefile.sys&#039;}; if(-not $c){ Write-Host &#039;WARNING: C:\\\\pagefile.sys setting missing.&#039; -ForegroundColor Yellow } elseif($c.InitialSize -ne 8192 -or $c.MaximumSize -ne 8192){ Write-Host (&#039;WARNING: C: setting is &#039; &#043; $c.InitialSize &#043; &#039;\/&#039; &#043; $c.MaximumSize &#043; &#039;, expected 8192\/8192.&#039;) -ForegroundColor Yellow }; $d&#061;$s | Where-Object {$_.Name -eq &#039;D:\\\\pagefile.sys&#039;}; if(-not $d){ Write-Host &#039;WARNING: D:\\\\pagefile.sys setting missing or has a malformed name.&#039; -ForegroundColor Yellow } elseif($d.InitialSize -ne 32768 -or $d.MaximumSize -ne 32768){ Write-Host (&#039;WARNING: D: setting is &#039; &#043; $d.InitialSize &#043; &#039;\/&#039; &#043; $d.MaximumSize &#043; &#039;, expected 32768\/32768.&#039;) -ForegroundColor Yellow }&#034;<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  Actual allocation<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;$u&#061;Get-CimInstance Win32_PageFileUsage; $u | Select-Object Name,AllocatedBaseSize,CurrentUsage,PeakUsage | Format-Table -AutoSize; $du&#061;$u | Where-Object {$_.Name -eq &#039;D:\\\\pagefile.sys&#039;}; if(-not $du){ Write-Host &#039;WARNING: D: pagefile is not active. Reboot first.&#039; -ForegroundColor Yellow } elseif($du.AllocatedBaseSize -ne 32768){ Write-Host (&#039;WARNING: D: allocated &#039; &#043; $du.AllocatedBaseSize &#043; &#039;MB, expected 32768MB.&#039;) -ForegroundColor Yellow }&#034;<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  Commit \/ headroom<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;$l&#061;(Get-Counter &#039;\\\\Memory\\\\Commit Limit&#039;).CounterSamples.CookedValue; $c&#061;(Get-Counter &#039;\\\\Memory\\\\Committed Bytes&#039;).CounterSamples.CookedValue; $a&#061;(Get-Counter &#039;\\\\Memory\\\\Available MBytes&#039;).CounterSamples.CookedValue; &#039;CommitLimitGB &#061; {0:N2}&#039; -f ($l\/1GB); &#039;CommittedGB   &#061; {0:N2}&#039; -f ($c\/1GB); &#039;HeadroomGB    &#061; {0:N2}&#039; -f (($l-$c)\/1GB); &#039;AvailableMB   &#061; {0}&#039; -f $a&#034;<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  Top 8 processes by commit<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;Get-Process | Sort-Object PagedMemorySize64 -Descending | Select-Object -First 8 Name,Id,&#064;{n&#061;&#039;CommitMB&#039;;e&#061;{[math]::Round($_.PagedMemorySize64\/1MB)}} | Format-Table -AutoSize&#034;<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  Low-memory events 2004 (last 3 days)<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;Get-WinEvent -FilterHashtable &#064;{LogName&#061;&#039;System&#039;; ProviderName&#061;&#039;Microsoft-Windows-Resource-Exhaustion-Detector&#039;; StartTime&#061;(Get-Date).AddDays(-3)} -ErrorAction SilentlyContinue | Select-Object TimeCreated,Id | Format-Table -AutoSize&#034;<\/p>\n<p>pause<\/p>\n<p>Configuration \u6bb5\u8bfb\u7684\u662f\u201c\u914d\u7f6e\u201d&#xff0c;Actual allocation \u6bb5\u8bfb\u7684\u662f\u201c\u7cfb\u7edf\u5b9e\u9645\u521b\u5efa\u51fa\u6765\u7684\u9875\u9762\u6587\u4ef6\u201d\u3002\u4e24\u8005\u8981\u540c\u65f6\u770b&#xff1a;\u914d\u7f6e\u6b63\u786e\u4f46\u672a\u91cd\u542f\u65f6&#xff0c;AllocatedBaseSize \u4ecd\u7136\u662f\u65e7\u503c&#xff1b;\u53ea\u6709\u91cd\u542f\u540e\u4e24\u8005\u4e00\u81f4&#xff0c;\u624d\u8bf4\u660e\u914d\u7f6e\u771f\u6b63\u751f\u6548\u3002<\/p>\n<p>\u4e00\u6b21\u6b63\u5e38\u7684\u9a8c\u8bc1\u8f93\u51fa\u5927\u81f4\u5982\u4e0b&#xff1a;<\/p>\n<p>AutomaticManagedPagefile &#061; False<br \/>\nPagingFiles registry:<br \/>\nC:\\\\pagefile.sys 8192 8192<br \/>\nD:\\\\pagefile.sys 32768 32768<\/p>\n<p>Win32_PageFileUsage:<br \/>\nC:\\\\pagefile.sys  8192<br \/>\nD:\\\\pagefile.sys 32768<\/p>\n<p>CommitLimitGB &#061; 55.34<br \/>\nCommittedGB   &#061; 7.53<br \/>\nHeadroomGB    &#061; 47.81<\/p>\n<p>CommitLimitGB \u662f\u5f53\u524d\u4e0a\u9650&#xff0c;HeadroomGB \u662f\u5269\u4f59\u7a7a\u95f4\u3002\u7a7a\u95f2\u65f6\u4f59\u91cf\u5927\u4e0d\u4ee3\u8868\u6e38\u620f\u5cf0\u503c\u65f6\u4e5f\u591f&#xff1b;\u9a8c\u8bc1\u8981\u5728\u8fdb\u5165\u6218\u573a\u540e\u518d\u770b\u4e00\u6b21&#xff0c;\u6216\u8005\u81f3\u5c11\u786e\u8ba4 2004 \u4e8b\u4ef6\u4e0d\u518d\u51fa\u73b0\u3002<\/p>\n<hr \/>\n<h3>&#x1f9ea; \u9884\u671f\u7ed3\u679c\u4e0e\u5931\u8d25\u5904\u7406<\/h3>\n<p>check \u51fa\u73b0\u5f02\u5e38\u65f6&#xff0c;\u5148\u6309\u73b0\u8c61\u5bf9\u7167\u539f\u56e0&#xff0c;\u4e0d\u8981\u76f4\u63a5\u91cd\u8dd1 apply&#xff1a;<\/p>\n<table>\n<tr>\u73b0\u8c61\u539f\u56e0\u5904\u7406<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">AutomaticManagedPagefile &#061; True<\/td>\n<td align=\"left\">apply \u6ca1\u6709\u4ee5\u7ba1\u7406\u5458\u8fd0\u884c&#xff0c;\u6216\u6ca1\u6709\u751f\u6548<\/td>\n<td align=\"left\">\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u91cd\u8dd1 apply<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">D: allocated 9216MB<\/td>\n<td align=\"left\">\u65e7 WMIC \u914d\u7f6e\u6b8b\u7559&#xff0c;\u6216\u5199\u5165\u540e\u6ca1\u6709\u91cd\u542f<\/td>\n<td align=\"left\">\u7528\u6ce8\u518c\u8868\u65b9\u5f0f\u91cd\u5199\u5e76\u91cd\u542f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">AllocatedBaseSize \u4ecd\u662f\u65e7\u503c<\/td>\n<td align=\"left\">\u914d\u7f6e\u5df2\u5199\u5165&#xff0c;\u4f46\u7cfb\u7edf\u8fd8\u6ca1\u6709\u91cd\u542f<\/td>\n<td align=\"left\">\u91cd\u542f\u540e\u518d\u8fd0\u884c check<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">WARNING: D: pagefile is not active<\/td>\n<td align=\"left\">D \u76d8\u6ca1\u6709\u521b\u5efa\u9875\u9762\u6587\u4ef6&#xff0c;\u6216\u7a7a\u95f4\u4e0d\u8db3<\/td>\n<td align=\"left\">\u68c0\u67e5 D \u76d8\u7a7a\u95f4\u548c PagingFiles<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">HeadroomGB \u957f\u671f\u4f4e\u4e8e 1GB<\/td>\n<td align=\"left\">\u540e\u53f0\u7a0b\u5e8f\u592a\u591a&#xff0c;\u6216\u6e38\u620f\u5cf0\u503c\u8fc7\u9ad8<\/td>\n<td align=\"left\">\u5173\u540e\u53f0\u3001\u964d BattleSize\u3001\u518d\u8bc4\u4f30<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>D \u76d8 32GB \u9875\u9762\u6587\u4ef6\u4f1a\u76f4\u63a5\u5360\u7528 32GB \u7a7a\u95f4\u3002\u811a\u672c\u4e0d\u68c0\u67e5\u5269\u4f59\u7a7a\u95f4&#xff0c;\u6267\u884c\u524d\u8981\u786e\u8ba4 D \u76d8\u81f3\u5c11\u6709 33GB \u7a7a\u95f2&#xff1b;\u5982\u679c D \u76d8\u7a7a\u95f4\u4e0d\u8db3&#xff0c;\u9875\u9762\u6587\u4ef6\u65e0\u6cd5\u6269\u5c55\u5230\u76ee\u6807\u5927\u5c0f&#xff0c;check \u4f1a\u663e\u793a\u5b9e\u9645\u5206\u914d\u4e0d\u7b26\u3002<\/p>\n<hr \/>\n<h3>\u21a9\ufe0f pagefile-restore.bat<\/h3>\n<p>restore \u628a\u914d\u7f6e\u6062\u590d\u6210 Windows \u81ea\u52a8\u7ba1\u7406\u3002\u811a\u672c\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&#064;echo off<br \/>\nsetlocal<br \/>\nnet session &gt;nul 2&gt;&amp;1<br \/>\nif errorlevel 1 (<br \/>\n  echo [ERROR] Please run as Administrator.<br \/>\n  pause<br \/>\n  exit \/b 1<br \/>\n)<\/p>\n<p>echo &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  BEFORE<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;Get-CimInstance Win32_ComputerSystem | Select-Object AutomaticManagedPagefile | Format-List; Get-CimInstance Win32_PageFileSetting | Select-Object Name,InitialSize,MaximumSize | Format-Table -AutoSize; $mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; &#039;PagingFiles registry:&#039;; (Get-ItemProperty -Path $mm -Name PagingFiles).PagingFiles&#034;<\/p>\n<p>echo.<br \/>\necho Restoring original state (automatic, C: only) &#8230;<br \/>\npowershell -NoProfile -ExecutionPolicy Bypass -Command &#034;$ErrorActionPreference&#061;&#039;Stop&#039;; $mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; $cs&#061;Get-CimInstance Win32_ComputerSystem; if($cs.AutomaticManagedPagefile){ $cs | Set-CimInstance -Property &#064;{AutomaticManagedPagefile&#061;$false} }; try { Get-CimInstance Win32_PageFileSetting | Remove-CimInstance -ErrorAction Stop } catch { }; Set-ItemProperty -Path $mm -Name PagingFiles -Value &#064;(&#039;?:\\\\pagefile.sys&#039;) -Type MultiString; $cs2&#061;Get-CimInstance Win32_ComputerSystem; $cs2 | Set-CimInstance -Property &#064;{AutomaticManagedPagefile&#061;$true}; &#039;Restored.&#039;&#034;<\/p>\n<p>echo.<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\necho  AFTER (effective after reboot)<br \/>\necho &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\npowershell -NoProfile -Command &#034;$mm&#061;&#039;HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management&#039;; Get-CimInstance Win32_ComputerSystem | Select-Object AutomaticManagedPagefile | Format-List; &#039;PagingFiles registry:&#039;; (Get-ItemProperty -Path $mm -Name PagingFiles).PagingFiles; &#039;Win32_PageFileSetting:&#039;; Get-CimInstance Win32_PageFileSetting | Select-Object Name,InitialSize,MaximumSize | Format-Table -AutoSize&#034;<\/p>\n<p>echo.<br \/>\necho DONE. Reboot Windows.<br \/>\necho If D:\\\\pagefile.sys still exists after reboot, delete it manually.<br \/>\npause<\/p>\n<p>?:\\\\pagefile.sys \u8868\u793a\u7531\u7cfb\u7edf\u6309\u9ed8\u8ba4\u7b56\u7565\u5728\u542f\u52a8\u5377\u4e0a\u7ba1\u7406\u9875\u9762\u6587\u4ef6&#xff1b;\u540c\u65f6\u628a AutomaticManagedPagefile \u8bbe\u56de True\u3002\u91cd\u542f\u540e\u5982\u679c D:\\\\pagefile.sys \u4ecd\u7136\u5b58\u5728&#xff0c;\u53ef\u4ee5\u5728\u786e\u8ba4\u7cfb\u7edf\u6ca1\u6709\u4f7f\u7528\u5b83\u4e4b\u540e\u624b\u52a8\u5220\u9664\u3002<\/p>\n<hr \/>\n<h3>&#x1f4cc; \u6267\u884c\u987a\u5e8f<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030001858-6ae3e27270b47.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 1 \u9875\u9762\u6587\u4ef6\u4fee\u590d\u6d41\u7a0b<\/p>\n<li>\u5173\u95ed\u6e38\u620f\u3001\u542f\u52a8\u5668\u548c Steam\u3002<\/li>\n<li>\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c pagefile-apply.bat&#xff0c;\u786e\u8ba4 AFTER \u6bb5\u7684\u4e24\u884c PagingFiles\u3002<\/li>\n<li>\u91cd\u542f Windows\u3002<\/li>\n<li>\u8fd0\u884c pagefile-check.bat&#xff0c;\u786e\u8ba4 D:\\\\pagefile.sys \u7684 AllocatedBaseSize \u4e3a 32768\u3002<\/li>\n<li>\u8fdb\u5165\u540c\u4e00\u573a\u6218\u6597\u590d\u6d4b&#xff1b;\u4ecd\u51fa\u73b0 OOM \u624d\u8003\u8651\u4e8c\u5206 MOD\u3002<\/li>\n<li>\u9700\u8981\u56de\u6eda\u65f6\u8fd0\u884c pagefile-restore.bat&#xff0c;\u518d\u91cd\u542f\u3002<\/li>\n<hr \/>\n<h3>\u26a0\ufe0f \u4f7f\u7528\u524d\u68c0\u67e5<\/h3>\n<ul>\n<li>\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c apply \u548c restore&#xff1b;check \u4e0d\u9700\u8981\u7ba1\u7406\u5458\u3002<\/li>\n<li>\u9000\u51fa\u6e38\u620f\u548c Steam&#xff0c;\u907f\u514d\u6587\u4ef6\u88ab\u5360\u7528\u3002<\/li>\n<li>D \u76d8\u81f3\u5c11\u4fdd\u7559 33GB \u7a7a\u95f2\u7a7a\u95f4&#xff0c;\u5176\u4e2d 32GB \u7ed9\u9875\u9762\u6587\u4ef6&#xff0c;1GB \u4f5c\u4e3a\u4f59\u91cf\u3002<\/li>\n<li>\u786e\u8ba4 C \u76d8\u4ecd\u6709\u8db3\u591f\u7a7a\u95f4&#xff1b;\u811a\u672c\u628a C \u76d8\u9875\u9762\u6587\u4ef6\u8bbe\u4e3a 8GB&#xff0c;\u4e0d\u4f1a\u65e0\u9650\u589e\u957f\u3002<\/li>\n<li>\u5199\u5165\u914d\u7f6e\u540e\u5fc5\u987b\u91cd\u542f&#xff0c;\u5426\u5219 AllocatedBaseSize \u4e0d\u4f1a\u53d8\u5316\u3002<\/li>\n<li>\u4e0d\u8981\u628a wmic pagefileset create \u4f5c\u4e3a\u5199\u5165\u65b9\u5f0f&#xff1b;\u5b83\u7684\u53cc\u53cd\u659c\u6760\u95ee\u9898\u4f1a\u5728\u4e0b\u4e00\u7bc7\u5c55\u5f00\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f9e9; \u811a\u672c\u590d\u7528<\/h3>\n<p>\u4e09\u4e2a\u811a\u672c\u7684\u5206\u5de5\u53ef\u4ee5\u590d\u7528\u5230\u5176\u4ed6\u673a\u5668&#xff1a;apply \u6539\u76d8\u7b26\u548c\u5927\u5c0f&#xff0c;check \u5728\u91cd\u542f\u540e\u9a8c\u8bc1&#xff0c;restore \u56de\u6eda\u3002\u590d\u7528\u65f6\u4e0d\u8981\u7167\u642c 8GB &#043; 32GB&#xff1b;\u5148\u6d4b\u5cf0\u503c&#xff0c;\u518d\u6309\u78c1\u76d8\u7a7a\u95f4\u8c03\u6574\u3002\u9875\u9762\u6587\u4ef6\u653e\u5728\u7cfb\u7edf\u76d8\u8fd8\u662f\u6570\u636e\u76d8&#xff0c;\u4e5f\u8981\u7ed3\u5408\u5185\u6838\u8f6c\u50a8\u9700\u6c42\u5224\u65ad\u3002<\/p>\n<hr \/>\n<h3>&#x1f4cc; \u5c0f\u7ed3<\/h3>\n<ul>\n<li>apply \u8d1f\u8d23\u5199\u5165\u914d\u7f6e&#xff0c;check \u8d1f\u8d23\u9a8c\u8bc1&#xff0c;restore \u8d1f\u8d23\u56de\u6eda\u3002<\/li>\n<li>\u914d\u7f6e\u5199\u5165\u6ce8\u518c\u8868\u540e\u5fc5\u987b\u91cd\u542f&#xff0c;\u914d\u7f6e\u503c\u548c\u5b9e\u9645\u5206\u914d\u503c\u8981\u5206\u5f00\u770b\u3002<\/li>\n<li>\u63d0\u4ea4\u9650\u5236\u7531\u7269\u7406\u5185\u5b58\u548c\u9875\u9762\u6587\u4ef6\u5171\u540c\u51b3\u5b9a&#xff0c;\u9875\u9762\u6587\u4ef6\u53ea\u662f\u540e\u5907\u5b58\u50a8\u3002<\/li>\n<li>\u9a8c\u8bc1\u8981\u770b AllocatedBaseSize\u3001CommitLimitGB \u548c 2004 \u4e8b\u4ef6&#xff0c;\u4e0d\u80fd\u53ea\u770b\u6ce8\u518c\u8868\u3002<\/li>\n<li>\u9875\u9762\u6587\u4ef6\u89e3\u51b3\u7684\u662f\u63d0\u4ea4\u4f59\u91cf&#xff0c;\u4e0d\u662f\u7269\u7406\u5185\u5b58\u4e0d\u8db3&#xff0c;\u4e5f\u4e0d\u662f\u6027\u80fd\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u4e00\u7bc7\u62c6\u89e3\u811a\u672c\u91cc\u7684 bat \u4e0e PowerShell \u8bed\u6cd5&#xff0c;\u91cd\u70b9\u8bb2 PagingFiles \u7684 REG_MULTI_SZ \u683c\u5f0f&#xff0c;\u4ee5\u53ca wmic pagefileset create \u4e3a\u4ec0\u4e48\u4f1a\u7559\u4e0b\u53cc\u53cd\u659c\u6760\u3002<\/p>\n<hr \/>\n<p>OK&#xff0c;\u672c\u7bc7\u5148\u5230\u8fd9\u91cc&#xff0c;\u5982\u6709\u7591\u95ee&#xff0c;\u6b22\u8fce\u8bc4\u8bba\u533a\u7559\u8a00\u8ba8\u8bba&#xff0c;\u795d\u5404\u4f4d\u529f\u529b\u5927\u6da8&#xff0c;\u6280\u672f\u66f4\u4e0a\u4e00\u5c42\u697c&#xff01;&#xff01;&#xff01;\u66f4\u591a\u5185\u5bb9\u89c1\u4e0b\u7bc7 blog \u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;bat \u4e0e PowerShell \u8bed\u6cd5\u9010\u884c\u62c6\u89e3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664 10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f<br \/>\n\u80cc\u666f<br \/>\n\u4e0a\u7bc7 \u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;OOM \u73b0\u573a\u4e0e\u865a\u62df\u5185\u5b58\u672f\u8bed \u628a\u73b0\u573a\u548c\u672f\u8bed\u8bb2\u6e05\u695a\u4e86&#xff1a;OOM&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":119725,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13664,13663],"topic":[],"class_list":["post-119726","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mod","tag-13663"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f - \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\/119726.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664 10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f \u80cc\u666f \u4e0a\u7bc7 \u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;OOM \u73b0\u573a\u4e0e\u865a\u62df\u5185\u5b58\u672f\u8bed \u628a\u73b0\u573a\u548c\u672f\u8bed\u8bb2\u6e05\u695a\u4e86&#xff1a;OOM&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/119726.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-30T00:19:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030001858-6ae3e27270b47.png\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119726.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/119726.html\",\"name\":\"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-30T00:19:00+00:00\",\"dateModified\":\"2026-10-30T00:19:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/119726.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/119726.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119726.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f\"}]},{\"@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":"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f - \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\/119726.html","og_locale":"zh_CN","og_type":"article","og_title":"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u58f0\u660e\u3011\u672c\u535a\u5ba2\u6240\u6709\u5185\u5bb9\u5747\u4e3a\u4e2a\u4eba\u4e1a\u4f59\u65f6\u95f4\u521b\u4f5c&#xff0c;\u6240\u8ff0\u6280\u672f\u6848\u4f8b\u5747\u6765\u81ea\u516c\u5f00\u5f00\u6e90\u9879\u76ee&#xff08;\u5982Github&#xff0c;Apache\u57fa\u91d1\u4f1a&#xff09;&#xff0c;\u4e0d\u6d89\u53ca\u4efb\u4f55\u4f01\u4e1a\u673a\u5bc6\u6216\u672a\u516c\u5f00\u6280\u672f&#xff0c;\u5982\u6709\u4fb5\u6743\u8bf7\u8054\u7cfb\u5220\u9664 10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f \u80cc\u666f \u4e0a\u7bc7 \u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58&#xff1a;OOM \u73b0\u573a\u4e0e\u865a\u62df\u5185\u5b58\u672f\u8bed \u628a\u73b0\u573a\u548c\u672f\u8bed\u8bb2\u6e05\u695a\u4e86&#xff1a;OOM&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/119726.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-30T00:19:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030001858-6ae3e27270b47.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/119726.html","url":"https:\/\/www.wsisp.com\/helps\/119726.html","name":"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-30T00:19:00+00:00","dateModified":"2026-10-30T00:19:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/119726.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/119726.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/119726.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"10\u3001\u3010MOD\u5f00\u53d1\u3011\u3010\u9a91\u780d2\u3011\u8fd0\u884c\u5185\u5b58\uff1a\u4e09\u4e2a bat \u811a\u672c\u7684\u5206\u5de5\u4e0e\u6267\u884c\u987a\u5e8f"}]},{"@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\/119726","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=119726"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119726\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/119725"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=119726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=119726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=119726"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=119726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}