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 教學

記憶體不足時,許多使用者習慣安裝第三方記憶體最佳化軟體,但這類工具往往強制釋放所有資源,反而增加硬碟交換檔負擔、降低效能。Windows Server 2003 內建的 Empty.exe 精準釋放「工作集」中不再使用的分頁,屬溫和釋放機制,不影響正在運作的程式,是系統管理員的得力助手。

Empty.exe 核心優勢

  • 精準釋放: 僅回收程式不再使用的分頁記憶體,不強制修剪工作集。
  • 零負擔: 不會觸發大量硬碟 I/O,避免系統瞬間卡頓。
  • 免安裝: 位於 %SystemRoot%\System32 或 Resource Kit 工具包中,隨叫隨用。
  • 支援自動化: 可整合至排程工作、批次檔、監控腳本。

使用語法

Empty.exe [PID | ProcessName]

參數說明:

  • PID:目標程式的程序識別碼(可透過工作管理員或 tasklist 取得)。
  • ProcessName:程式映像檔名稱(不含副檔名),如 notepad、sqlservr。

實戰範例

  1. 針對單一程序釋放: Empty.exe 1234(PID 為 1234)或 Empty.exe chrome。
  2. 批次釋放多支程式: 建立 freemem.bat:
    @echo off
    Empty.exe firefox
    Empty.exe chrome
    Empty.exe iexplore
    Empty.exe OUTLOOK
    
  3. 排程定時執行: 控制台 → 排程工作 → 新增工作 → 執行 freemem.bat,設定每小時/每日執行。

注意事項

  • 僅限 Windows Server 2003: Windows 2000/XP 不支援此工具。
  • 需管理員權限: 釋放系統服務或他人程序時必須以 Administrators 身分執行。
  • 非萬靈丹: 若系統長期記憶體不足,根本解決仍是增加實體 RAM 或優化程式記憶體洩漏。

結語

善用 Empty.exe 這把「內建手術刀」,配合效能監視器觀察 Memory\Available MBytes 與 Process\Working Set,即能精準掌握記憶體健康狀態,讓伺服器長期維持最佳運行狀態。

Copyright © Windows教程網 All Rights Reserved