A lightweight, native C# (.NET Framework 4.8) system tray memory optimization utility for Windows 10 and 11. It runs quietly in the notification area, continuously monitors physical memory, and reclaims memory using both documented Win32 APIs and undocumented Windows NT system APIs.
- Native C# Executable (.NET Framework 4.8): Completely rewritten in pure C# WinForms for instant startup, zero dependencies, and native out-of-the-box Windows 10/11 compatibility without needing extra runtimes or PowerShell.
- Dynamic System Tray Icon (Premium UI): Displays live physical memory usage directly on the notification area icon, color-coded by load (Green < 70%, Orange < 85%, Red ≥ 85%).
- Multi-Mode Optimization:
- Process Working Set Trimming (Public Win32 API): Iterates and trims the working sets of applications.
- Standby Memory List Purging (Undocumented NT API): Clears system standby caches.
- Modified Page List Flushing (Undocumented NT API): Flushes modified pages to disk.
- 1-Click Focus/Gaming Mode: Provides a 5-second countdown to lock onto your foreground app, automatically compressing background memory hogs and applying Windows 11's EcoQoS Efficiency Mode (Power Throttling) to maximize performance for games or heavy workloads. Features TopMost notification dialogs and precise foreground application name tracking to bypass system notification suppression.
- Targeted App Trimmer: Precision per-application memory compression dialog to select and trim individual memory-heavy applications.
- Responsive Auto-Layout UI: Full WinForms
TableLayoutPanelandSystemFontsDPI scaling integration ensures all dialogs seamlessly adapt to 100%, 125%, 150%, and custom DPI scaling settings. - i18n & Language Override: Auto-localizes UI between English and Traditional Chinese based on OS culture. Also supports
--enflag to force English UI rendering. - Event Log Analysis: Automatically scans Windows Event Log (Event ID
2004) to detect memory-exhaustion warnings and recommend optimal thresholds. - Auto-Start on Boot: Supports registering via Task Scheduler with highest privileges (Admin) or registry Run keys (Standard User).
- Log Rotation: Logs all activities to
memory_opt.log, automatically rotating and backing up when file size exceeds 2MB. - Duplicate Prevention: Implements a system-wide named
Mutexto prevent running duplicate instances. - Standard NSIS Installer & WinGet Manifests: Distributed as a clean NSIS installer and available via WinGet.
winget install Optico.WinMemoryOptDownload WinMemoryOpt-Setup-1.2.2.exe from Releases and run the installer.
# Run standard UI (Auto-detect System Language)
WinMemoryOpt.exe
# Force English UI rendering
WinMemoryOpt.exe --enWinMemoryOpt/
├── installer/ # NSIS Setup installer script (setup.nsi)
├── manifests/ # WinGet package manifests
├── src/WinMemoryOpt/ # Native C# (.NET Framework 4.8) source code
│ ├── Core/ # MemoryHelper, MemoryOptimizer, EventLogAnalyzer, AppConfig, AppLogger
│ ├── UI/ # TrayApplicationContext, SettingsForm, ProcessTrimmerForm
│ └── Resources/ # Multi-language string resources (resx)
├── CHANGELOG.md # Version release notes
├── LICENSE # Apache License 2.0
├── README.md # English documentation
└── README.zh-TW.md # Traditional Chinese documentation
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.