Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 2003 內置 Empty.exe 輕量級釋放記憶體工具使用詳解

編輯:Windows 2003 常見問題解答

為什麼選擇 Empty.exe?

第三方記憶體優化工具往往強制釋放所有內存,導致大量頁面交換、硬盤頻繁讀寫。Windows Server 2003 自帶的 Empty.exe 僅釋放不再使用的工作集頁面,屬於「按需釋放」,不增加磁盤壓力,且無需安裝、無廣告、綠色安全。

使用方法

打開命令提示符 (需系統路徑包含 %SystemRoot%\System32),執行:

Empty.exe <PID>          // 針對進程 ID
Empty.exe <進程名稱>      // 針對進程映像名稱 (如 notepad.exe)

例如釋放記事本佔用的工作集:Empty.exe notepad.exe

適用場景

  • 長時間運行的服務進程 (如 SQL Server、IIS 工作進程) 疑似內存洩漏時臨時緩解。
  • 開發調試階段觀察程序釋放行為。
  • 終端服務器會話斷開後清理殘留工作集。

注意事項

  • 僅限 Windows Server 2003,Windows 2000/XP/Vista/7/10 均不包含此工具。
  • 非長效方案,生產環境應優先排查代碼層面的內存洩漏。
  • 頻繁調用可能因重新讀取頁面略微增加 CPU 開銷。
Copyright © Windows教程網 All Rights Reserved